Socket
Book a DemoInstallSign in
Socket

exuent

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exuent

call a callback when all passed streams have ended or any stream has errored

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

exuent

call a callback when all passed streams have ended or any constituent stream has errored.

var exuent = require('exuent')

exuent(stream1, stream2, streamN, function(err) {
  // called ONCE after each stream has exited OR
  // any stream has errored.
})

// alternatively:
exuent([stream1, streamN], function(err) {
  // same deal!
})

API

exuent(streams:Array, ready:Function(err:Error | null))

exuent([stream:ReadableStream,] ready:Function(err:Error | null))

ready will be called on nextTick if no streams are provided.

Does not trigger flowing mode or reads. Streams must be piped separately from this function.

License

MIT

Keywords

streams

FAQs

Package last updated on 17 Mar 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