0.0.1 • Published 6 years ago

@achingbrain/stream-cache v0.0.1

Weekly downloads
1
License
-
Repository
github
Last release
6 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);
0.0.1

6 years ago