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