djLint/docs/node_modules/stream-shift
2021-12-14 09:57:37 +01:00
..
.travis.yml also exclude nunj and musta 2021-12-14 09:57:37 +01:00
index.js also exclude nunj and musta 2021-12-14 09:57:37 +01:00
LICENSE also exclude nunj and musta 2021-12-14 09:57:37 +01:00
package.json also exclude nunj and musta 2021-12-14 09:57:37 +01:00
README.md also exclude nunj and musta 2021-12-14 09:57:37 +01:00
test.js also exclude nunj and musta 2021-12-14 09:57:37 +01:00

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