Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/suretnohq/ping

Simple ping command parser for Typescript & Deno
https://github.com/suretnohq/ping

deno deno-modules deno-ping deno-tools ping

Last synced: about 2 months ago
JSON representation

Simple ping command parser for Typescript & Deno

Awesome Lists containing this project

README

        

# Ping

Simple watcher file for build an application using deno

### Usage

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

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

Result content

```json
{
"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