Something went wrong. Try again.
Mirror: Best-effort discovery of the machine's local network using just Node.js dgram sockets
Something went wrong. Try again.
293 B · 12 lines
TypeScript
at main
12345678910111213import { lanNetwork } from './index';
async function output() { const assignment = await lanNetwork({ noProbe: process.argv.includes('--no-probe'), noDhcp: process.argv.includes('--no-dhcp'), }); process.stdout.write(JSON.stringify(assignment)); process.exit(0);}
output();