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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    28
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    28
  • 1.0.1
    71
  • 1.0.0
    0

Package Sidebar

Install

npm i killport

Weekly Downloads

99

Version

1.0.2

License

MIT

Unpacked Size

2.32 kB

Total Files

3

Last publish

Collaborators

  • ssnau