Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

buffered

0.0.1 • Public • Published

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);

Keywords

none

Install

npm i buffered

DownloadsWeekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • avatar