simple-binary-consume

Consume simple binary stream

simple-binary-consume

Consume simple binary stream.

##Examples

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