Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A duplex stream that buffers writes
JavaScript
branch: master

typo

latest commit e2ba3a2cc2
@Raynos authored
Failed to load latest commit information.
example first
.gitignore wow. Be gone node_modules
LICENCE first
Makefile first
README.md typo
index.js first
package.json first

README.md

buffer-stream

A duplex stream that buffers writes

Example

var BufferStream = require("buffer-stream")

var buffer = BufferStream().buffer()

buffer.write("stuff")

buffer.on("data", doStuff)

someTimeLater(function (stream) {
    // Oh we have a stream
    // Empty the buffer onto the stream
    // Further writes to the buffer go directly to the stream
    // Any data the stream emits get's re-emitted on the buffer
    buffer.empty(stream)
})

Installation

npm install buffer-stream

Contributors

  • Raynos

MIT Licenced

Something went wrong with that request. Please try again.