node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

simple-binary-consume

simple-binary-consume

Consume simple binary stream.

Examples

var consume = require('simple-binary-consume')
 
consume(src, 'utf8', function(err, text) {
  console.log(text)
})
 
consume(src, function(err, buf) {
  buf.should.be.instanceOf(Buffer)
})