killport

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i killport

Weekly Downloads

81

Version

1.0.2

License

MIT

Unpacked Size

2.32 kB

Total Files

3

Last publish

Collaborators

  • ssnau