0.3.0 • Published 2 years ago
node-binary-parser v0.3.0
Node Binary Parser
Node addon for parsing binary data by rules.
Source
Source code is available from Github
Install
npm
npm i node-binary-parser
yarn
yarn add node-binary-parser
Usage
import { BinaryParser } from 'node-binary-parser';
const parser = new BinaryParser();
parser.parseBits('first', 1);
parser.parseBits('second', 1);
const result = parser.parse(Buffer.from('70')); // result => { first: 0, second: 1 }
Testing
If you create a pull request, tests better pass :)
npm install
npm test
Documentation
Learn more about using node-binary-parsing on docs page
License
MIT