fast-cli
Version:
Test your download and upload speed using fast.com
86 lines (60 loc) • 1.58 kB
Markdown
and upload speed using [fast.com](https://fast.com)

Ensure you have [Node.js](https://nodejs.org) 20+ installed. Then run the following:
```sh
npm install --global fast-cli
```
*This project uses Puppeteer under the hood. Most [install issues](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md) are related to that.*
```
$ fast --help
Usage
$ fast
$ fast > file
Options
--upload, -u Measure upload speed in addition to download speed
--single-line Reduce spacing and output to a single line
--json JSON output
--verbose Include latency and server location information
Examples
$ fast --upload > file && cat file
17 Mbps
4.4 Mbps
$ fast --upload --json
```
<img src="screenshot-upload.gif" width="500" height="260">
Include additional diagnostic information like latency and client location:
```sh
fast --verbose
```
```
72 Mbps
8 Mbps
Latency: 8 ms (unloaded) / 16 ms (loaded)
Client: Osaka, JP • 216.144.245.67
```
The speeds are in Mbps.
```sh
fast --upload --json
```
```json
{
"downloadSpeed": 52,
"uploadSpeed": 64,
"downloadUnit": "Mbps",
"uploadUnit": "Mbps",
"downloaded": 270,
"uploaded": 290,
"latency": 9,
"bufferBloat": 46,
"userLocation": "Somewhere, NO",
"userIp": "49.222.206.21"
}
```
- [speed-test](https://github.com/sindresorhus/speed-test) - Test your internet connection speed and ping using speedtest.net
> Test your download