each-exec
A Node module to run commands in parallel
var eachExec = ; ;
Installation
npm install each-exec
API
var eachExec = ;
eachExec(commands [, options, callback])
commands: Array
of String
(the commands to run)
options: Object
(child_process.exec options)
callback: Function
It runs the commands using child_process.exec in parallel.
After all the commands have finished, it runs the callback function.
When one of the commands fails, it immediately calls the callback function and the rest of the commands won't be run.
callback(error, stdoutArray, stderrArray)
error: Error
if one of the commands fails, otherwise null
stdoutArray: Array
of String
(stdout of the commands)
stderrArray: Array
of String
(stderr of the commands)
It doesn't pass any values to the second argument and third argument, if one of the commands fails.
;
Callback function is optional.
; ;
License
Copyright (c) 2014 Shinnosuke Watanabe
Licensed under the MIT License.