Skip to content

Repository files navigation

Node Binary Parser

Node addon for parsing binary data by rules.

Build Status codecov NPM npm npm

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

About

Node addon for parsing binary data by rules

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages