varint-decoder

v1.0.0
Parse all the varints in a Buffer (for when there are varints everywhere)
IPFS varint

varint-decoder

Coverage Status Travis CI Circle CI Dependency Status js-standard-style

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]
npm i varint-decoder

Metadata

  • MIT
  • >=4.0.0
  • David Dias
  • released 8/7/2020

Downloads

Maintainers