Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lqqyt2423/node-concat-stream

Combine multiple readable streams into one.
https://github.com/lqqyt2423/node-concat-stream

Last synced: 20 days ago
JSON representation

Combine multiple readable streams into one.

Awesome Lists containing this project

README

        

# node-concat-stream

Combine multiple readable streams into one.

## install

```bash
npm i node-concat-stream
```

## example

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