UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

17 lines (11 loc) 353 B
# 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); ```