# pipe-streams-to-promise

> Pipe an array of streams to a single promise. Captures errors on any of the streams.

Latest version **0.2.0** (published 2016-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install pipe-streams-to-promise
pnpm add pipe-streams-to-promise
yarn add pipe-streams-to-promise
bun add pipe-streams-to-promise
```

## 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 | 2016-04-11 |
| First published | 2015-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Troy Astorino |
| Maintainers | troyastorino |
| Keywords | streams, node, promises, bluebird, js |

## Links

- npm: https://www.npmjs.com/package/pipe-streams-to-promise
- Repository: https://github.com/troyastorino/pipe-streams-to-promise
- Issues: https://github.com/troyastorino/pipe-streams-to-promise/issues
- npm.io page: https://npm.io/package/pipe-streams-to-promise

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) ^2.9.13
- [stream-to-promise](https://npm.io/package/stream-to-promise.md) ^1.0.4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.0 (latest) — 2016-04-11
- 0.1.0 — 2015-03-12

## README

# pipe-streams-to-promise
Pipes an array of streams together and returns a promise. Checks for any errors on the steams.

Heavily inspired by, and test cases taken from,
[epeli](https://github.com/epeli)'s
[promisePipe](https://github.com/epeli/node-promisepipe)

### Usage

```
var pipeStreams = require('pipe-streams-to-promise');

var fs = require('fs');
var zlib = require('zlib');

var gzip = zlib.createGzip();
var readStream = fs.createReadStream('myfile.txt');
var writeStream = fs.createWriteStream('myfile.txt.gz');


pipeStreams([
  readStream,
  gzip,
  writeStream
]).then(function(writeStream) {
  console.log('Done compressing.');
}).catch(function(err) {
  console.error('Ran into an error:', err);
});
```

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