kill-process

1.0.2 • Public • Published

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')
 

/kill-process/

    Package Sidebar

    Install

    npm i kill-process

    Weekly Downloads

    296

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • alex0007