Merge multiple streams into one, using Streams2.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

Build Status NPM version Dependency Status

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

Install with npm.

npm install multistream-merge

Examples

Buffer mode

var multistreamMerge = require('multistream-merge');

multistreamMerge(childProcess.stdout, childProcess.stderr)
    .pipe(fs.createWriteStream('output.log'));

Object mode

var gulp = require('gulp');
var multistreamMerge = require('multistream-merge');

multistreamMerge.obj(gulp.src('assets/**'), gulp.src('src/**'))
    .pipe(gulp.dest('out/'));

Documentation

multistreamMerge([options], readableStreams)

options

Type: Object

Available options:

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

readableStreams

Type: ...ReadableStream | ReadableStream[]

The input streams to merge

multistreamMerge.obj(readableStreams)

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

License

MIT @ Mario Casciaro


Bitdeli Badge