Skip to content

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

License

Notifications You must be signed in to change notification settings

ipfs-shipyard/varint-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •