node-pingit
v0.0.3
Published
A minimalistic nodeJS module for the Ping command
Downloads
2
Readme
node-pingit
Just a minimalistic nodeJS module for executing the Ping command
Installation
$ npm install node-pingit
Async usage (recommended)
var pingit = require('node-pingit')
pingit.pingAsync('www.google.com', function(err, miliseconds){
console.log('Async ping: '+miliseconds);
});
Sync usage
var pingit = require('node-pingit')
var miliseconds = pingit.ping('www.google.com');
console.log('Sync ping: '+miliseconds);
Tests
$ npm test