This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

dht-bencode

0.1.2 • Public • Published

dht-bencode

bencode with Buffer()s from nodejs (as it is binary data, javascript string are not a good idea to handle it)

install

npm install dht-bencode

usage

var bencode = require('dht-bencode');

bencode.bencode({ t: 'ab' }).toString(); // should result in "d1:t2:abe"
bencode.bdecode("d1:t2:abe"); // should result in { t: <Buffer 61 62> }

Readme

Keywords

none

Package Sidebar

Install

npm i dht-bencode

Weekly Downloads

95

Version

0.1.2

License

none

Last publish

Collaborators

  • npm