bitcoder

0.0.1 • Public • Published

bitcoder

It's a streaming C++ Node addon for encoding/decoding byte streams to alternate bases.

Right now it only supports Base 32 encoding. An example test.js:

var bitcoder = require('bitcoder')
var encoder = new bitcoder.Encoder()
// Encoder::encode(chunk, flush) - set flush=true for the final chunk
var base32 = encoder.encode(new Buffer("Hello World"), true)
console.log(base32.toString('ascii'))var encoder = new require('bitcoder').Encoder()

Result:

$ node test.js
91jprv3f41bpywkccg

Install

$ npm install bitcoder

WHY?

Mostly to learn the Node C++ API, partially because Base 32 using only JS is slow as a dog, if that dog were a quadruple amputee. Aww, now I made myself sad.

Formalia

Do whatever you want with the code, and I like pull requests, failing tests, and issue tickets.

Readme

Keywords

none

Package Sidebar

Install

npm i bitcoder

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • agnoster