peek-length-prefixed-message

1.0.2 • Public • Published

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

/peek-length-prefixed-message/

    Package Sidebar

    Install

    npm i peek-length-prefixed-message

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • juliangruber