ping-wrapper3

0.0.11 • Public • Published

ping-wrapper

Native wrapper for ping.

Install

npm install ping-wrapper3

Example

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

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

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i ping-wrapper3

      Weekly Downloads

      0

      Version

      0.0.11

      License

      none

      Last publish

      Collaborators

      • metalmynds