node package manager

simple-binary-consume

Consume simple binary stream

simple-binary-consume

Consume simple binary stream.

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)
})