Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixge/node-stream-cache
A simple way to cache and replay readable streams.
https://github.com/felixge/node-stream-cache
Last synced: about 1 month ago
JSON representation
A simple way to cache and replay readable streams.
- Host: GitHub
- URL: https://github.com/felixge/node-stream-cache
- Owner: felixge
- License: mit
- Created: 2012-04-25T11:36:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T09:54:09.000Z (over 5 years ago)
- Last Synced: 2024-11-09T18:12:12.649Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 45
- Watchers: 6
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# node-stream-cache
A simple way to cache and replay readable streams.
## Usage
```js
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);
```