# read-streams

> Read streams and emits data from them (with/without ordering)

Latest version **0.3.0** (published 2014-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install read-streams
pnpm add read-streams
yarn add read-streams
bun add read-streams
```

## 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.3.0 |
| Published | 2014-08-19 |
| First published | 2014-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vsevolod Strukchinsky |
| Maintainers | floatdrop |
| Keywords | stream, read, order, ordered |

## Links

- npm: https://www.npmjs.com/package/read-streams
- Repository: https://github.com/floatdrop/read-streams
- Issues: https://github.com/floatdrop/read-streams/issues
- npm.io page: https://npm.io/package/read-streams

## Dependencies (1)

- [through2](https://npm.io/package/through2.md) ^0.6.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.3.0 (latest) — 2014-08-19
- 0.2.0 — 2014-08-17
- 0.1.0 — 2014-08-17
- 0.0.2 — 2014-08-17
- 0.0.1 — 2014-08-17
- 0.0.0 — 2014-08-17

## README

# read-streams [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]

Reads multiple streams _in order_ and emits data/errors from them. Inspired by [ordered-read-streams](https://github.com/armed/ordered-read-streams).

If you want unordered stream of data - then you should use [merge-stream](https://github.com/grncdr/merge-stream).

## Usage

```js
var read = require('read-streams');
var stream1 = new Stream();
var stream2 = new Stream();

read(stream1, stream2).pipe(console.log)
```

## API

#### read(stream..., [options])

##### stream
Type: `stream.Readable`  

Readable stream, that will be read. You can pass `Array` as first argument (instead of passing each stream as argument).

##### options
Type: `Object`  

###### objectMode
Type: `Boolean`
Default: `true`

## License

MIT (c) 2014 Vsevolod Strukchinsky

[npm-url]: https://npmjs.org/package/read-streams
[npm-image]: https://badge.fury.io/js/read-streams.png

[travis-url]: http://travis-ci.org/floatdrop/read-streams
[travis-image]: https://travis-ci.org/floatdrop/read-streams.png?branch=master

[depstat-url]: https://david-dm.org/floatdrop/read-streams
[depstat-image]: https://david-dm.org/floatdrop/read-streams.png?theme=shields.io

[coveralls-url]: https://coveralls.io/r/floatdrop/read-streams
[coveralls-image]: https://coveralls.io/repos/floatdrop/read-streams/badge.png

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