pingwrap

Small wrapper to ping servers

A easy to use utility for node.js to send ping requests

##Installation

Make sure you have the latest node, coffee-script and npm installed. To run:

$ coffee app.coffee

For those coffee haters, I have compiled it to native javascript. To run:

$ node app.js

First include it to your application

var ping = require('./lib/ping');

You can then call the ping function by passing it two arguments:

ping( [hostname/ip], [callback] );
sys = require('util');
ping = require('./lib/ping');

ping('google.com', function(error, stdout, stderr) {
  return sys.puts(stdout);
});