Socket
Book a DemoInstallSign in
Socket

multi-stdout

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-stdout

Pipe out multiple streams to stdout in parallel without messing up the output

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

multi-stdout

Pipe out multiple streams to stdout in parallel without messing up the output

npm install multi-stdout

Usage

var mstdout = require('multi-stdout')

var a = mstdout()
var b = mstdout()
var c = mstdout()

setInterval(function() {
  a.write('a')
}, 500)

setInterval(function() {
  b.write('b')
}, 1000)

setInterval(function() {
  c.write('c')
}, 1500)

Running the above program for 10s will produce the following output

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbb
cccccccccc

License

MIT

FAQs

Package last updated on 02 Oct 2014

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