read-streams

0.3.0 • Public • Published

read-streams NPM version Build Status Coverage Status Dependency Status

Reads multiple streams in order and emits data/errors from them. Inspired by ordered-read-streams.

If you want unordered stream of data - then you should use merge-stream.

Usage

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

Package Sidebar

Install

npm i read-streams

Weekly Downloads

1

Version

0.3.0

License

MIT

Last publish

Collaborators

  • floatdrop