@code.brofessor/port-checker

- `npm i -S port-checker`

Usage no npm install needed!

<script type="module">
  import codeBrofessorPortChecker from 'https://cdn.skypack.dev/@code.brofessor/port-checker';
</script>

README

port-checker

Installation

  • npm i -S port-checker

Example

//import portChecker
const portChecker = require("port-checker");

// run it
(async () => {
  const val = await portChecker({ host: "www.google.com", port: 80 });
  // val === true
  console.log(val);
})();

License

WTFPL © Michael Rowlinson