nodeproc
Simpler way to handle spawning processes in NodeJs
var Nodeproc = ; var processes = ; // Most basic useprocesses; // Slightly more complicatedprocesses; // Control stdout and/or stderr from the process.// These can be anything that supports the write(data, encoding) method.// These default to process.stdout and process.stderr respectivelyvar captureStdout = { console; };processes; // Catch errors using a Promise catch functionprocesses; // Can ignore error exit status codes, and always resolve the processprocesses; // Can kill processes prematurelyprocesses; // Set invalidateOnError=true when creating the Nodeproc instance, and when one process errors,// it will automatically kill all other running processes, and will prevent others from being created.var processes2 = invalidateOnError = true;
See the tests for more examples