Skip to content

sonewman/cache-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache-Stream

Simple streaming module implementing the Stream2 interface for Node.js v0.10+

Install: $ npm i cache-stream

  var cacheStream = require('cache-stream')
    , cache = cacheStream();

  fs.createReadStream(path.join(__dirname, './my-file.txt')).pipe(cache);

from here you can do anything streamy you like:

  var through = new require('stream').Passthrough;
  cache.pipe(through);
  through.on('finish', function () {
    cache.pipe(process.stdout);
  });

About

caching stream for Node.js streams 2 api

Resources

Stars

Watchers

Forks

Packages

No packages published