1.1.1 • Published 6 years ago

is-port-bound v1.1.1

Weekly downloads
-
License
Unlicense
Repository
-
Last release
6 years ago

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.)

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago