stream-shift

Returns the next buffer/object in a stream's readable queue

MIT 4 个版本
安装
npm install stream-shift
yarn add stream-shift
pnpm add stream-shift
bun add stream-shift
README

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

版本列表
1.0.3 2024-01-17
1.0.2 2024-01-10
1.0.1 2019-12-12
1.0.0 2016-07-08