tree: e795af0198afe357047644311b96df1c485cc683 [path history] [tgz]
  1. .travis.yml
  2. index.js
  3. LICENSE
  4. package.json
  5. README.md
  6. 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