python-rencode
Arbitrary data encoder/decoder that matches python rencode
.

Usage
npm install python-rencode
const { encode, decode } = require('python-rencode');
const thing = 1;
const encoded = encode(thing);
const decoded = decode(encoded);
Install as Git Dependency
If you'd rather not use the versions published to npm, you can easily install from github directly with:
npm install cinderblock/python-rencode
npm install cinderblock/python-rencode
npm install cinderblock/python-rencode
npm install cinderblock/python-rencode
Change Log
v1.4.0
v1.4.0
slightly changed the API.
undefined
has been replaced with null
.undefined
is no longer allowed as a value and will now throw.
This behavior might change in the future. Make an issue to discuss.
v1.3.0
- Export data type:
RencodableData
v1.2.0
v1.1.0