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

Package Sidebar

Install

npm i kill-process

Weekly Downloads

810

Version

1.0.2

License

ISC

Last publish

Collaborators

  • alex0007