buffered

Buffered stream

npm install buffered
2 downloads in the last week
14 downloads in the last month

buffered Build Status

buffered stream is a implementation of a buffered stream, heavily based on @mikeal's morestreams.

Installation

npm install buffered

Usage

var fs = require('fs'),
    http = require('http'),
    BufferedStream = require('buffered').BufferedStream;

http.createServer(function (req, res) {
  var buffer = new BufferedStream();
  req.pipe(buffer);
  setTimeout(function () {
    buffer.pipe(fs.createWriteStream('req'));
  }, 500);
}).listen(8000);
npm loves you