Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lqqyt2423/node-concat-stream
- Owner: lqqyt2423
- Created: 2019-12-26T03:30:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-26T03:34:43.000Z (about 5 years ago)
- Last Synced: 2024-12-06T12:47:09.665Z (about 1 month ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```