Skip to content
/ ping Public

Simple ping command parser for Typescript & Deno

License

Notifications You must be signed in to change notification settings

hibuno/ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ping

Simple watcher file for build an application using deno

Usage

import Ping from "https://denopkg.com/muhibbudins/ping/mod.ts";

const result = await Ping("google.com", 2);
console.log(result);

Result content

{
  "hops": [
    {
      "ip": "216.239.38.120",
      "bytes": 64,
      "sequence": 0,
      "ttl": 52,
      "time": 16.114
    },
    {
      "ip": "216.239.38.120",
      "bytes": 64,
      "sequence": 1,
      "ttl": 52,
      "time": 15.489
    }
  ],
  "detail": {
    "ip": "216.239.38.120",
    "domain": "forcesafesearch.google.com",
    "bytes": 56
  },
  "result": {
    "transmitted": 2,
    "received": 2,
    "loss": 0
  },
  "stats": {
    "min": 15.489,
    "avg": 15.802,
    "max": 16.114,
    "stddev": 0.312
  }
}

License

This project is under MIT License

About

Simple ping command parser for Typescript & Deno

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published