peach a19a732be8 commit message 2 years ago
..
.travis.yml a19a732be8 commit message 2 years ago
LICENSE a19a732be8 commit message 2 years ago
README.md a19a732be8 commit message 2 years ago
index.js a19a732be8 commit message 2 years ago
package.json a19a732be8 commit message 2 years ago
test.js a19a732be8 commit message 2 years ago

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