pingwrap

0.0.1 • Public • Published

Node.js Ping utility

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

Usage

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] );

Example:

sys = require('util');
ping = require('./lib/ping');

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i pingwrap

      Weekly Downloads

      2

      Version

      0.0.1

      License

      none

      Last publish

      Collaborators

      • tehlulz