A simple way to cache and replay readable streams.
JavaScript
Latest commit b495537 Apr 27, 2012 @felixge Implemented getLength
Failed to load latest commit information.
lib Implemented getLength Apr 27, 2012
test Initial implementation and tests Apr 25, 2012
.gitignore Simplify .gitignore Apr 25, 2012
License Add Readme and license content Apr 25, 2012
README.md
index.js Initial implementation and tests Apr 25, 2012
package.json 0.0.1 Apr 25, 2012

README.md

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