Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/suretnohq/ping
- Owner: SuretnoHQ
- License: mit
- Created: 2020-05-25T06:18:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T06:38:07.000Z (over 4 years ago)
- Last Synced: 2024-10-27T07:51:20.389Z (2 months ago)
- Topics: deno, deno-modules, deno-ping, deno-tools, ping
- Language: TypeScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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