# multistream-merge

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

Latest version **0.2.0** (published 2014-08-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install multistream-merge
pnpm add multistream-merge
yarn add multistream-merge
bun add multistream-merge
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-08-21 |
| First published | 2014-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mario Casciaro |
| Maintainers | mariocasciaro |
| Keywords | stream, streams, merge, combine |

## Links

- npm: https://www.npmjs.com/package/multistream-merge
- Repository: https://github.com/mariocasciaro/multistream-merge
- Issues: https://github.com/mariocasciaro/multistream-merge/issues
- npm.io page: https://npm.io/package/multistream-merge

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ~0.4.1
- [lodash.isplainobject](https://npm.io/package/lodash.isplainobject.md) ~2.4.1

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2014-08-21
- 0.1.0 — 2014-02-16

## README

[![Build Status](https://secure.travis-ci.org/mariocasciaro/multistream-merge.png?branch=master)](https://travis-ci.org/mariocasciaro/multistream-merge) 
[![NPM version](https://badge.fury.io/js/multistream-merge.png)](http://badge.fury.io/js/multistream-merge) 
[![Dependency Status](https://gemnasium.com/mariocasciaro/multistream-merge.png)](https://gemnasium.com/mariocasciaro/multistream-merge)

# 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](https://npmjs.org/package/multistream-merge).

```
npm install multistream-merge
```

## Examples

### Buffer mode
```js
var multistreamMerge = require('multistream-merge');

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

### Object mode
```js
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](http://en.wikipedia.org/wiki/MIT_License) @ Mario Casciaro

-----

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mariocasciaro/multistream-merge/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

---
_Source: https://npm.io/package/multistream-merge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
