Consume simple binary stream
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

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