simple-binary-consume

Consume simple binary stream

npm install simple-binary-consume
1 downloads in the last week
4 downloads in the last month

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)
})
npm loves you