Skip to content

Commit bacfd45

Browse files
authored
Add --json, --list-providers, ignore inactive, add colors (#11)
1 parent db5877c commit bacfd45

File tree

2 files changed

+270
-109
lines changed

2 files changed

+270
-109
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gets the list of Mullvad servers with the best latency according to `ping`.
1111
2. Run the following command
1212

1313
```shell
14-
deno run --allow-net=api.mullvad.net,deno.land --allow-run=ping https://raw.githubusercontent.com/grant0417/mullvad-ping/v0.6.0/script.ts
14+
deno run --allow-net=api.mullvad.net,deno.land --allow-run=ping https://raw.githubusercontent.com/grant0417/mullvad-ping/v0.7.0/script.ts
1515
```
1616

1717
Note: The Windows version of `ping` is somewhat more limited than that of Linux
@@ -22,15 +22,17 @@ or Mac so the times are less precice and the script will take ~5x longer.
2222
```
2323
Usage: script [OPTION]
2424
--country <code> the country you want to query (eg. us, gb, de)
25-
--list <plain|json> lists the available servers
25+
--list lists the available servers
2626
--list-countries lists the available countries
27+
--list-providers lists the available providers
2728
--type <type> the type of server to query (openvpn, bridge, wireguard, all)
28-
--count <n> the number of pings to the server (default 3)
29-
--interval <i> the interval between pings in seconds (default/min 0.2)
30-
--top <n> the number of top servers to show, (0=all)
29+
--count <n> the number of pings to the server (default 5)
30+
--top <n> the number of top servers to show, (0=all, default 5)
3131
--port-speed <n> only show servers with at least n Gigabit port speed
3232
--provider <name> only show servers from the given provider
3333
--owned <true|false> only show servers owned by Mullvad
3434
--run-mode <type> only show servers running from (all, ram, disk)
35-
--help usage information
35+
--include-inactive include inactive servers
36+
--json output the results in JSON format
37+
--help, -h display this help and exit
3638
```

0 commit comments

Comments
 (0)