Skip to content
stateboxPublic

About

JS implementation of NLL codec

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

Build Status PRs Welcome

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 ] ]

About

JS implementation of NLL codec

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages