multistream-merge

Merge multiple streams into one (using through2 and hence Streams2)

multistream-merge

Merge multiple streams into one, using Streams2.

The order of the emitted chunks/objects is random in the sense that this module does not enforce any ordering on the emitted data.

Install with npm.

npm install multistream-merge
var multistreamMerge = require('multistream-merge');
 
multistreamMerge(childProcess.stdout, childProcess.stderr)
    .pipe(fs.createWriteStream('output.log'));
var gulp = require('gulp');
var multistreamMerge = require('multistream-merge');
 
multistreamMerge.obj(gulp.src('assets/**'), gulp.src('src/**'))
    .pipe(gulp.dest('out/'));

Type: Object

Available options:

  • objectMode: false. Set the objectMode options for the merge stream.

Type: ...ReadableStream | ReadableStream[]

The input streams to merge

Convenience method to create a merge stream with object mode enabled.

MIT @ Mario Casciaro