simple-bufferstream

Turn a Buffer into a Stream (simplistic version)

MIT 6 个版本
安装
npm install simple-bufferstream
yarn add simple-bufferstream
pnpm add simple-bufferstream
bun add simple-bufferstream
README

Simple BufferStream Build Status

Give it a Node.js Buffer and it'll give you a Node.js Readable Stream; that's all!

If you need anything fancier then use BufferStream, it does splitting and the whole kitchen sink!

A contrived example:

var sbuff = require('simple-bufferstream')

sbuff(myBuffer).pipe(fs.createWriteStream('myoutput.dat'))

Not that you'd want to do exactly that but sometimes you need a Buffer to behave as a Stream.

Licence

Simple BufferStream is Copyright (c) 2012-2015 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

版本列表
1.0.0 2015-03-21
0.0.4 2013-07-08
0.0.3 2013-07-07
0.0.2 2013-01-27
0.0.1 2013-01-27
0.0.0 2013-01-27