Concatenate streams, the simple way.
var cat = require('stream-cat');
cat([abcStream(), defStream()]).pipe(process.stdout);
// outputs:
a b c d e f
$ npm install stream-cat
Given an array of streams
, drain one after another completely and stream the results. Returns a readable stream. Errors are forwarded.
Just like cat streamA streamB
.
MIT