You are reading a single comment by @MrTimcakes and its replies. Click here to read the full conversation.
  • Thanks but in the end I just created a Ping Module, I've created a pull request here which does include documentation but its really simple to use, all you gotta do is:

    var p = require("Ping");
    
    p.ping({ address: 'google.com' }, function(err, data) {
      console.log(data);
    });
    

    to get :

    {
      "address": "google.com",
      "port": 80, "attempts": 5, "avg": 36.86366081237, "max": 54.41212654113, "min": 29.13498878479,
      "raw": [ 29.13498878479, 54.41212654113, 34.74617004394, 32.61685371398, 33.40816497802 ]
     }
    
About

Avatar for MrTimcakes @MrTimcakes started