portcheck

linebreak ========= Node.js Module To Check If A Port Is In Use

Usage no npm install needed!

<script type="module">
  import portcheck from 'https://cdn.skypack.dev/portcheck';
</script>

README

linebreak

Node.js Module To Check If A Port Is In Use

Usage

Install into your project or use your package.json:

npm install portcheck

And then:

var portcheck = require('portcheck');

To check if a port is in use:

var PortEightyIsInUse = portcheck.IsInUse(80)

It will return false if not in use, or a text error if it is.