peek-length-prefixed-message
v1.0.2
Published
Get the first length-prefixed-message while returning an unconsumed stream
Downloads
2
Readme
peek-length-prefixed-message
Get a stream's first length-prefixed-message while returning an unconsumed stream.
Example
var peek = require('peek-length-prefixed-message')
var stream = createStream()
stream = peek(stream, function (err, buf) {
// ...
})
Installation
$ npm install peek=length-prefixed-message
API
stream = peek(stream, cb)
License
MIT