bns_zhgd_web/node_modules/stream-shift
haozq 65e8192a56 first commit 2025-04-02 10:01:21 +08:00
..
.github/workflows first commit 2025-04-02 10:01:21 +08:00
LICENSE first commit 2025-04-02 10:01:21 +08:00
README.md first commit 2025-04-02 10:01:21 +08:00
index.js first commit 2025-04-02 10:01:21 +08:00
package.json first commit 2025-04-02 10:01:21 +08:00
test.js first commit 2025-04-02 10:01:21 +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