car_web/node_modules/stream-shift
xzk a886a0fe6a 许兆坤 2024-03-15 14:22:17 +08:00
..
.github/workflows 许兆坤 2024-03-15 14:22:17 +08:00
LICENSE 许兆坤 2024-03-15 14:22:17 +08:00
README.md 许兆坤 2024-03-15 14:22:17 +08:00
index.js 许兆坤 2024-03-15 14:22:17 +08:00
test.js 许兆坤 2024-03-15 14:22:17 +08:00

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