simple-bufferstream

2018-10-13 admin

simple-bufferstream是什么

什么是simple-bufferstream,Turn a Buffer into a Stream (simplistic version)

simple-bufferstream使用教程帮助文档

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 © 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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-42595.html

文章标题:simple-bufferstream

回到顶部