|
|
||||
|---|---|---|---|---|
| .. | ||||
| .npmignore | 11e3a9652a | 7 years ago | ||
| .travis.yml | 11e3a9652a | 7 years ago | ||
| LICENSE | 11e3a9652a | 7 years ago | ||
| README.md | 11e3a9652a | 7 years ago | ||
| index.js | 11e3a9652a | 7 years ago | ||
| package.json | 11e3a9652a | 7 years ago | ||
| test.js | 11e3a9652a | 7 years ago | ||
Returns the next buffer/object in a stream's readable queue
npm install stream-shift
var shift = require('stream-shift')
console.log(shift(someStream)) // first item in its buffer
Thanks @dignifiedquire for making this work on node 6
MIT