is-port-busy
v1.0.5
Published
A simple node module to check if a TCP port is busy on the local machine.
Downloads
18
Maintainers
Readme
is-port-busy
A simple node module to check if a TCP port is busy on the local machine. See also is-port-free
Installation
$ npm install --save is-port-busy
Example
var isPortBusy = require('is-port-busy');
isPortBusy(8080).then(function(){
console.log('yes');
})
.catch(function(){
console.log('no');
});
Running tests
Install dev dependencies and run tests:
$ npm install -d && npm test
License
Licensed under ISC License © John Doherty