Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Turn a Node.js Buffer into a ReadableStream
JavaScript
branch: master

Merge pull request #3 from madarche/feat-update-travis-nodejs-versions

Add Node.js 0.12.x and 0.10.x versions for test
latest commit a6e3f27c26
@rvagg authored
Failed to load latest commit information.
.gitignore initial commit
.jshintrc initial commit
.travis.yml Don't support Node.js version 0.8.x anymore
LICENSE.md update deps and license
README.md update deps and license
index.js remove fn#bind
package.json 1.0.0
test.js remove t.plan, blergh!

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.

Something went wrong with that request. Please try again.