Skip to content

ssnau/killport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a nodejs module to kill any process given their port

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published