@cap32/scan-ip

scan ip over lan

Usage no npm install needed!

<script type="module">
  import cap32ScanIp from 'https://cdn.skypack.dev/@cap32/scan-ip';
</script>

README

Scan IP

Scan IP over LAN

Installation

$ yarn add @cap32/scan-ip

Usages

import { Scan } from "@cap32/scan-ip";

(async () => {
  const scan = new Scan({ port: 80 });
  scan.on("connect", (host, port) => {
    console.log(`${host}:${port}`);
  });
  const report = await scan.start();
  console.log(report);
})();

API References

https://cap32.github.io/scan-ip/

License

MIT