exec-promised
Handle program execution from the promise framework in a clean way.
- Stream sysout/err through notifications instead of waiting.
- Resolve or fail the promise using the program exit code.
- Command arguments are automatically quoted.
Getting Started
npm install exec-promised --save
Example streaming output from 'ls'
var exec = ;var progress = progress; ;
Example spawn mongodb with process cleanup
var path = ;var spawn = spawn;var progress = progress; { //Bit of handwaving here, on Windows usually need to hack to handle SIGINT gracefully. // Take a look at: http://stackoverflow.com/questions/10021373/what-is-the-windows-equivalent-of-process-onsigint-in-node-js process;} ;