pongspeedtest 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/speedtest.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Zero dependencies. Works with Node.js 18+.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g
|
|
10
|
+
npm install -g pongspeedtest
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
@@ -35,7 +35,7 @@ pong --list-servers
|
|
|
35
35
|
## Output
|
|
36
36
|
|
|
37
37
|
```
|
|
38
|
-
▸ pong speed test — Auto (
|
|
38
|
+
▸ pong speed test — Auto (Nearest)
|
|
39
39
|
────────────────────────────────────────────────
|
|
40
40
|
|
|
41
41
|
Ping 26.2 ms (Good)
|
|
@@ -68,7 +68,7 @@ pong --json | jq .download
|
|
|
68
68
|
|
|
69
69
|
```json
|
|
70
70
|
{
|
|
71
|
-
"server": { "code": "auto", "name": "Auto (
|
|
71
|
+
"server": { "code": "auto", "name": "Auto (Nearest)" },
|
|
72
72
|
"ping": 26.2,
|
|
73
73
|
"jitter": 2.1,
|
|
74
74
|
"download": 302.4,
|
|
@@ -83,7 +83,7 @@ pong --json | jq .download
|
|
|
83
83
|
|
|
84
84
|
| Code | Location |
|
|
85
85
|
|------|----------|
|
|
86
|
-
| auto |
|
|
86
|
+
| auto | Auto nearest (default) |
|
|
87
87
|
| ewr | Newark, US |
|
|
88
88
|
| lax | Los Angeles, US |
|
|
89
89
|
| yyz | Toronto, CA |
|
package/lib/speedtest.js
CHANGED
|
@@ -7,7 +7,7 @@ import { progressBar, stopSpinner } from "./ui.js";
|
|
|
7
7
|
|
|
8
8
|
// ── Servers ──────────────────────────────────────────────────────
|
|
9
9
|
export const SERVERS = {
|
|
10
|
-
auto: { code: "auto", name: "Auto (
|
|
10
|
+
auto: { code: "auto", name: "Auto (Nearest)", url: "https://speed.pong.com" },
|
|
11
11
|
ewr: { code: "ewr", name: "Newark, US", url: "https://speed-ewr.pong.com" },
|
|
12
12
|
lax: { code: "lax", name: "Los Angeles, US", url: "https://speed-lax.pong.com" },
|
|
13
13
|
yyz: { code: "yyz", name: "Toronto, CA", url: "https://speed-yyz.pong.com" },
|