stream-cache

A simple way to cache and replay readable streams.

npm install stream-cache
32 downloads in the last day
257 downloads in the last week
849 downloads in the last month

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);
npm loves you