Get a stream's first length-prefixed-message while returning an unconsumed stream.
var peek = require('peek-length-prefixed-message')
var stream = createStream()
stream = peek(stream, function (err, buf) {
// ...
})
$ npm install peek=length-prefixed-message
MIT