UNPKG

cmbo

Version:

Run multiple processes in one shell + stop all with ctrl+c

17 lines (15 loc) 325 B
#!/usr/bin/env node const program = require('commander') const {spawn} = require('child_process') program .version('0.1.0') .arguments('<commands...>') .action((commands) => { commands.map((command) => spawn(command, { stdio: 'inherit', shell: true }) ) }) .parse(process.argv)