is-port-bound

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-port-bound

Weekly Downloads

1

Version

1.1.1

License

Unlicense

Unpacked Size

2.56 kB

Total Files

4

Last publish

Collaborators

  • valentin.huebner