Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

rvagg/archived-node-simple-bufferstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Turn a Node.js Buffer into a ReadableStream

Resources

License

Stars

Watchers

Forks

Packages

No packages published