mprocs
Version:
Run multiple processes in parallel
17 lines (13 loc) • 414 B
JavaScript
;
var spawn = require("child_process").spawn;
var input = process.argv.slice(2);
var bin = require("./");
if (bin !== null) {
spawn(bin, input, { stdio: "inherit" }).on("exit", process.exit);
} else {
throw new Error(
"Platform not supported by npm distribution. " +
"Check https://github.com/pvolok/mprocs for other ways to install procs on your platform."
);
}