forked from danielzzz/node-ping
-
Notifications
You must be signed in to change notification settings - Fork 0
JaminFarr/node-ping
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NODE-PING a ping wrapper for nodejs LICENSE MIT (C) Daniel Zelisko http://github.com/danielzzz/node-ping DESCRIPTION node-ping is a simple wrapper for the system ping utility INSTALLATION npm install ping USAGE var ping = require('ping'); var hosts = ['192.168.1.1', 'google.com', 'yahoo.com']; hosts.forEach(function(host){ ping.sys.probe(host, { timeout: 1 }, function(isAlive){ var msg = isAlive ? 'host ' + host + ' is alive' : 'host ' + host + ' is dead'; console.log(msg); }); });
About
a poor man's ping library (using udp scanning) for node
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%