# stream-combiner2

> This is a sequel to [stream-combiner](https://npmjs.org/package/stream-combiner) for streams3.

Latest version **1.1.1** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install stream-combiner2
pnpm add stream-combiner2
yarn add stream-combiner2
bun add stream-combiner2
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-10-16 |
| First published | 2014-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 'Dominic Tarr' |
| Maintainers | substack |

## Links

- npm: https://www.npmjs.com/package/stream-combiner2
- Repository: https://github.com/substack/stream-combiner2
- Issues: https://github.com/substack/stream-combiner2/issues
- npm.io page: https://npm.io/package/stream-combiner2

## Dependencies (2)

- [duplexer2](https://npm.io/package/duplexer2.md) ~0.1.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^2.0.2

## Recent versions

- 1.1.1 (latest) — 2015-10-16
- 1.1.0 — 2015-10-16
- 1.0.2 — 2014-09-30
- 1.0.1 — 2014-07-03
- 1.0.0 — 2014-07-03

## README

# stream-combiner2

This is a sequel to
[stream-combiner](https://npmjs.org/package/stream-combiner)
for streams3.

``` js
var combine = require('stream-combiner2')
```

## Combine (stream1,...,streamN)

Turn a pipeline into a single stream. `Combine` returns a stream that writes to the first stream
and reads from the last stream. 

Streams1 streams are automatically upgraded to be streams3 streams.

Listening for 'error' will recieve errors from all streams inside the pipe.

```js
var Combine = require('stream-combiner')
var es      = require('event-stream')

Combine(                                  // connect streams together with `pipe`
  process.openStdin(),                    // open stdin
  es.split(),                             // split stream to break on newlines
  es.map(function (data, callback) {      // turn this async function into a stream
    var repr = inspect(JSON.parse(data))  // render it nicely
    callback(null, repr)
  }),
  process.stdout                          // pipe it to stdout !
)
```

## License

MIT

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