Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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