Skip to content

shiftgeist/fast-cli-interval

 
 

Repository files navigation

fast-cli

Test your download and upload speed using fast.com

Install

Ensure you have Node.js version 14+ installed. Then run the following:

cd fast-cli-interval

npm install

npm pack

npm install --global ./fast-cli-$VERSION.tgz

This project uses Puppeteer under the hood. Most install issues are related to that.

Usage

$ fast --help

  Usage
    $ fast [options]

	Options
    --debug            Show cli options information
    --interval, -i     Bandwidth interval test (in minutes)
    --json             JSON output
    --json-file, -o    Output to json file
    --single-line, -s  Reduce spacing and output to a single line
    --upload, -u       Disable upload speed measurement

  Examples
    $ fast --upload
    93 Mbps ↓ / 13 Mbps ↑

    $ fast --upload --json

    $ fast --upload --interval 10 --json-file fast.json
Upload speed

Interval mode

JSON output

The speeds are in Mbps.

fast --upload --json
{
  "date": "2023-02-13T12:43:43.738Z",
  "downloadSpeed": 92,
  "uploadSpeed": 13,
  "downloaded": 100,
  "uploaded": 60,
  "latency": 7,
  "bufferBloat": 18,
  "userLocation": "Somewhere, NO",
  "userIp": "49.222.206.21"
}

Technology

This fork is made possible because of the following projects. Spread some love ❤️

  • ora - "Elegant terminal spinner"
  • terminalizer - "Record your terminal and generate animated gif images or share a web player "
  • tsup - "The simplest and fastest way to bundle your TypeScript libraries.""

Source

  • fast-cli - Test your download and upload speed using fast.com
- removed react/ink
+ file output option
+ interval mode
+ tsup single file bundle
+ typescript

About

Test your download and upload speed over time using fast.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.5%
  • JavaScript 18.5%