Skip to content

pyrmont/bencodobi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bencodobi

Build Status

Bencodobi is a bencode encoding and decoding library for Janet.

Installation

Add the dependency to your project.janet file:

(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.

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.

Licence

Bencodobi is licensed under the MIT Licence. See LICENSE for more details.

About

A bencode library for Janet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •