pull-header

0.0.0 • Public • Published

pull-header

read a fixed length binary header from a pull-stream.

pull(
  binarySource,
  header(196, function (data) {
    //this is a 196 byte header from the start of the stream.
    console.log('head:', data)
  }),
  pull.drain(function (chunk) {
    console.log('body chucnk', chunk)
  }))

License

MIT

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i pull-header

    Weekly Downloads

    35

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • dominictarr