port-scanner-promise

port scanner

Usage no npm install needed!

<script type="module">
  import portScannerPromise from 'https://cdn.skypack.dev/port-scanner-promise';
</script>

README

Usage

bin/scan host port timeout
const scan = require('port-scanner-promise');
scan('127.0.0.1', 22, 400)
.then(console.log)
.catch(console.error);