node-concat-stream
v1.0.1
Published
Combine multiple readable streams into one.
Downloads
11
Maintainers
Readme
node-concat-stream
Combine multiple readable streams into one.
install
npm i node-concat-stream
example
const fs = require('fs');
const ConcatStream = require('node-concat-stream');
const stream1 = fs.createReadStream('package.json');
const stream2 = fs.createReadStream('index.js');
const stream3 = fs.createReadStream('test.js');
const combinedStream = new ConcatStream([stream1, stream2, stream3]);
combinedStream.once('finish', () => {
console.info('combinedStream finished');
});
combinedStream.pipe(process.stdout);