1.0.1 • Published 4 years ago

node-concat-stream v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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);