0.0.6 • Published 8 years ago

ping-wrapper2 v0.0.6

Weekly downloads
11
License
-
Repository
github
Last release
8 years ago

ping-wrapper

Native wrapper for ping.

Install

npm install ping-wrapper2

Example

var ping = require("ping-wrapper2");

var exec = ping("google.com", { count: 20 }); // default 10 packets

exec.on("data", function(data){
  // { no: 1, bytes: 64, time: 54, ttl: 1 }
	console.log(data);
});

exec.on("exit", function(data){
  // { sent: 10, recieved: 10, loss: 0, time: 9010 }
	console.log(data);
});
0.0.6

8 years ago

0.0.5

10 years ago

0.0.4

11 years ago

0.0.2

11 years ago

0.0.1

12 years ago