0.0.2 • Published 12 years ago

stream-cache v0.0.2

Weekly downloads
88,964
License
-
Repository
github
Last release
12 years ago

node-stream-cache

A simple way to cache and replay readable streams.

Usage

var StreamCache = require('stream-cache');
var fs          = require('fs');

var cache = new StreamCache();
fs.createReadStream(__filename).pipe(cache);

// Cache can now be piped anywhere, even before the readable stream finishes.
cache.pipe(process.stdout);