$ npm install src-stream
Wrap readable streams to turn them into passthrough streams.
Install with npm
$ npm i src-stream --save
var src = require('src-stream');
Wrap a source stream to passthrough any data that's being written to it.
Params
stream
{Stream}: Readable stream to be wrapped.returns
{Stream}: Duplex stream to handle reading and writing.Example
var src = require('src-stream');
// wrap something that returns a readable stream
var stream = src(plugin());
fs.createReadStream('./package.json')
.pipe(stream)
.on('data', console.log)
.on('end', function () {
console.log();
console.log('Finished');
console.log();
});
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Brian Woodward
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on July 14, 2015.
© 2010 - cnpmjs.org x YWFE | Home | YWFE