Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 616 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 616 Bytes

BencodeJS

This is an implementation of Bencode for JavaScript. Bencode is used for DHTs, Torrents, and Google DataServers. Its a lightweight fast data serialization. Wikipedia

I have also made an implementation of Bencode with Java, Rust and PHP.

Usage

Here are some examples of how to use the Bencode library.

Bencode

//DATA MUST BE IN THE FORMAT: Uint8Array
var ben = new Bencode(data).decode();
console.log(ben);