https://github.com/mafintosh/stream-shift
Returns the next buffer/object in a stream's readable queue
https://github.com/mafintosh/stream-shift
Last synced: 11 days ago
JSON representation
Returns the next buffer/object in a stream's readable queue
- Host: GitHub
- URL: https://github.com/mafintosh/stream-shift
- Owner: mafintosh
- License: mit
- Created: 2016-07-08T20:57:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-17T19:15:12.000Z (over 1 year ago)
- Last Synced: 2025-03-31T16:38:47.655Z (19 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 22
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs - stream-shift - Returns the next buffer/object in a stream's readable queue. (Repository / Streams)
- awesome-nodejs-streams - mafintosh/stream-shift - Returns the next buffer/object in a stream's readable queue (Modules)
README
# stream-shift
Returns the next buffer/object in a stream's readable queue
```
npm install stream-shift
```[](http://travis-ci.org/mafintosh/stream-shift)
## Usage
``` js
var shift = require('stream-shift')console.log(shift(someStream)) // first item in its buffer
```## Credit
Thanks [@dignifiedquire](https://github.com/dignifiedquire) for making this work on node 6
## License
MIT