Turn a Node.js Buffer into a ReadableStream
JavaScript
Switch branches/tags
Nothing to show
Latest commit a6e3f27 Mar 22, 2015 @rvagg Merge pull request #3 from madarche/feat-update-travis-nodejs-versions
Add Node.js 0.12.x and 0.10.x versions for test
Permalink
Failed to load latest commit information.
.gitignore initial commit Jan 27, 2013
.jshintrc initial commit Jan 27, 2013
.travis.yml Don't support Node.js version 0.8.x anymore Mar 21, 2015
LICENSE.md update deps and license Mar 21, 2015
README.md update deps and license Mar 21, 2015
index.js remove fn#bind Jul 7, 2013
package.json 1.0.0 Mar 21, 2015
test.js remove t.plan, blergh! Jul 7, 2013

README.md

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.