ping-subnet
A tiny util for discovering alive hosts in local network. It is fully compatible with the native nodejs
EventEmmiter
Installation
npm install ping-subnet
Usage
You can specify the custom ranges parameter.
Ranges parameter is represented by array of strings. There are two possible forms: just a single IP or the range.
const SubnetsPinger = ; const ranges = '192.168.0.123' '192.168.0.1-192.168.0.100'; const subnetPinger = ranges; subnetPinger; subnetPinger; subnetPinger;
If the custom ranges is not specified it would be assigned using current network settings
const SubnetsPinger = ; const subnetPinger = ; subnetPinger; subnetPinger; subnetPinger;