pipeware
v0.0.2
Published
For making stream-based middleware
Downloads
6
Readme
pipeware
For making stream-based middleware. Built on oneway.
Usage
var ware = require('pipeware');
var mw = ware();
mw
.use(fs.createReadStream)
.use(function (file_path) {
if (file_path.indexOf('.gz') != -1) {
return require('zlib').createGunzip();
}
});
mw.run('README.md.gz').pipe(process.stdout);
Installation
npm install pipeware