https://github.com/pyrmont/bencodobi
A bencode library for Janet
https://github.com/pyrmont/bencodobi
bencode janet
Last synced: about 1 month ago
JSON representation
A bencode library for Janet
- Host: GitHub
- URL: https://github.com/pyrmont/bencodobi
- Owner: pyrmont
- License: mit
- Created: 2020-05-03T05:49:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T01:58:12.000Z (over 4 years ago)
- Last Synced: 2025-10-20T08:36:58.231Z (5 months ago)
- Topics: bencode, janet
- Homepage:
- Size: 45.9 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bencodobi
[](https://github.com/pyrmont/bencodobi/actions?query=workflow%3Abuild)
Bencodobi is a bencode encoding and decoding library for Janet.
## Installation
Add the dependency to your `project.janet` file:
```clojure
(declare-project
:dependencies ["https://github.com/pyrmont/bencodobi"])
```
## Usage
Bencodobi can be used like this:
```
(import bencodobi)
(def output @"")
(bencodobi/encode output "hello world")
(print output) # => "11:hello world"
(bencodobi/decode "13:goodbye world") # => "goodbye world"
```
## API
Documentation for Bencodobi's API is in [api.md][api].
[api]: https://github.com/pyrmont/bencodobi/blob/master/api.md
## Bugs
Found a bug? I'd love to know about it. The best way is to report your bug in
the [Issues][] section on GitHub.
[Issues]: https://github.com/pyrmont/bencodobi/issues
## Licence
Bencodobi is licensed under the MIT Licence. See [LICENSE][] for more details.
[LICENSE]: https://github.com/pyrmont/bencodobi/blob/master/LICENSE