Bencodobi is a bencode encoding and decoding library for Janet.
Add the dependency to your project.janet
file:
(declare-project
:dependencies ["https://github.com/pyrmont/bencodobi"])
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"
Documentation for Bencodobi's API is in api.md.
Found a bug? I'd love to know about it. The best way is to report your bug in the Issues section on GitHub.
Bencodobi is licensed under the MIT Licence. See LICENSE for more details.