kill-process
v1.0.2
Published
Promisified kill process with all its childs by pid
Downloads
4,032
Readme
Kill-process
var kill = require('kill-process')
var backend = require('child_process').exec('node server/index.js')
// backend.kill() will not work here because exec points to sh -c node server/index.js, not node
await kill(backend.pid)
console.log('Backend server killed')