1.0.2 • Published 3 years ago

killport v1.0.2

Weekly downloads
204
License
MIT
Repository
github
Last release
3 years ago

killport

a nodejs module to kill any process given their port

Usage

For example, you want to kill the process listening on port 8080:

var killport = require('killport');

killport(8080)
// if success
.then(function(out){
  console.log(out);
})
// if failed
.catch(function(err){
  console.log(err);
});

Support

Only works on OS with lsof command.

License

MIT