Skip to content

acanalda/node-pingit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pingit

Just a minimalistic nodeJS module for executing the Ping command

Requirements

nodeJS = v0.12

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

About

Just a basic nodeJS module for executing the Ping command

Resources

License

Stars

Watchers

Forks

Packages

No packages published