git-svn-id: https://svn.libreccm.org/ccm/trunk@5740 8810af33-2d31-482b-a856-94f89814c4df |
||
|---|---|---|
| .. | ||
| lib | ||
| test | ||
| .npmignore | ||
| License | ||
| README.md | ||
| index.js | ||
| package.json | ||
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);