@achingbrain/stream-cache

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @achingbrain/stream-cache

Weekly Downloads

2

Version

0.0.1

License

none

Unpacked Size

362 kB

Total Files

7

Last publish

Collaborators

  • achingbrain