npm.io
0.3.0 • Published 11 years ago

read-streams

Licence
MIT
Version
0.3.0
Deps
1
Vulns
0
Weekly
0

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