1.0.0 • Published 4 years ago

varint-decoder v1.0.0

Weekly downloads
5,007
License
MIT
Repository
github
Last release
4 years ago

varint-decoder

npm.io npm.io npm.io Coverage Status Travis CI Circle CI Dependency Status js-standard-style npm.io npm.io

Parse all the varints in a Buffer (for when there are varints everywhere)

Usage

API

const vd = require('varint-decoder')
const buf = new Buffer('000110', 'hex')

const decoded = vd(buf)

console.log(decoded)
// [0, 1, 16]