nll

1.0.2 • Public • Published

BuildStatus PRsWelcome

NLL-JS

Encodes list of lists of integers into a Buffer according to https://github.com/statebox/nll-spec

Usage

Import library

const nll = require('nll')
//=> { encode: [[number]] -> Buffer,
//     decode: Buffer -> [[number]] }

Encode

> b = nll.encode([[-1],[0],[],[1]])
//=> <Buffer 0f 00 01 00 02 00 00 04>

Decode

> n.decode(b)
[ [ -1 ], [ 0 ], [], [ 1 ] ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i nll

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • wires