IOTConnect-Web/node_modules/stream-shift
2024-05-09 09:49:52 +08:00
..
.github/workflows Initial commit 2024-05-09 09:49:52 +08:00
index.js Initial commit 2024-05-09 09:49:52 +08:00
LICENSE Initial commit 2024-05-09 09:49:52 +08:00
package.json Initial commit 2024-05-09 09:49:52 +08:00
README.md Initial commit 2024-05-09 09:49:52 +08:00
test.js Initial commit 2024-05-09 09:49:52 +08: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