tree: fb46eb9af51e02c7afe367d8e31abde9f4d3690f [path history] [tgz]
  1. .npmignore
  2. .travis.yml
  3. index.js
  4. LICENSE
  5. package.json
  6. README.md
  7. test.js
node_modules/stream-shift/README.md

stream-shift

Returns the next buffer/object in a stream's readable queue

npm install stream-shift

build status

Usage

var shift = require('stream-shift')

console.log(shift(someStream)) // first item in its buffer

Credit

Thanks @dignifiedquire for making this work on node 6

License

MIT