1.1.1 • Published 6 years ago
is-port-bound v1.1.1
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.)