is-port-bound
v1.1.1
Published
Check whether the port with a given number is open
Downloads
1
Readme
Check whether the port with a given number is bound
Usage example
const checkPort = require('is-port-bound');
checkPort(8080).then((isBound) => {
console.log(isBound ? 'bound' : 'free');
});
Documentation
checkPort(port)
takes one argument, which is the number of the port to be
checked. It returns a promise, which resolves to a boolean value reflecting
whether the port is bound.
License
Unlicense. (This is public domain work.)