concurrent-run ·
Simple, zero dependency, multiple commands runner in concurrent mode.
Installation
npm
npm install --save-dev concurrent-run
Yarn
yarn add --dev concurrent-run
Usage
CLI
concurrent-run "command1 arg" "command2 arg"
Always surround multiple commands with quotes, otherwise, everything will be treated as a single command.
API
; ; concurrent .run .on"data", .on"close", .on"error",;
Events
data
gets called oncestderr
orstdout
of spawned process sends data.
; ; concurrent .run .on"data",;
close
gets called once command is finished.
; ; concurrent .run .on"close",;
error
gets called once an error occurs.
; ; concurrent .run .on"error",;
Contributing
Feel free to open issues or PRs!