Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

multi-read-stream

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-read-stream

Readable stream that reads from multiple readable streams at the same time

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

multi-read-stream

Readable stream that reads from multiple readable streams at the same time. If you are looking for a readable stream that reads sequentially from other streams checkout multistream

npm install multi-read-stream

build status

Usage

var from = require('from2')
var multi = require('multi-read-stream')

var rs = multi.obj([
  from.obj([{hello: 'world'}]),
  from.obj([{hej: 'verden'}])
])

rs.on('data', function (data) {
  console.log(data) // {hello: 'world'} or {hej: 'verden'}
})

rs.on('end', function () {
  console.log('(no more data)')
})

API

stream = multi(arrayOfReadableStreams, [options])

Create a new multi read stream. Options are forwarded to the stream constructor.

objStream = multi.obj(arrayOfReadableStreams, [options])

Same as above but sets objectMode = true

License

MIT

FAQs

Package last updated on 16 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts