npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pull-header

0.0.0

@dominictarr

npmHomeRepoSnykSocket
Downloads:10318
$ npm install pull-header
DailyWeeklyMonthlyYearly

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