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

Readme

Keywords

none

Package Sidebar

Install

npm i pull-header

Weekly Downloads

2

Version

0.0.0

License

MIT

Last publish

Collaborators

  • dominictarr