Scan IP over LAN
$ yarn add @cap32/scan-ip
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);
})();
https://cap32.github.io/scan-ip/
MIT