intcoder
v0.0.3
Published
Encoded/decode integers into uint8Arrays
Downloads
11
Readme
intcoder
Encoded/decode integers into big-endian uint8Arrays
Install
Install with npm
$ npm i intcoder --save-dev
Usage
const intcoder = require('intcoder')
intcoder.encode(17336073770484)
> [ 15, 196, 94, 132, 213, 244 ]
const encoded = new Uint8Array([52, 21, 56, 23, 6])
intcoder.decode(encoded)
> 223694296838
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
This file was generated by readme-generator on May 01, 2017.