cf-speedtest
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

cf-speedtest

A simple CLI tool to measure your Cloudflare network performance, including latency, packet loss, download, and upload speeds.

Requirements

  • Node.js 18 or higher

Installation

Install globally via npm:

npm install -g cf-speedtest

Or run without installation using npx:

npx cf-speedtest

Usage

After installation, run:

cf-speedtest

Example Output

🌐 Server Location:
City     : Singapore
Public IP: 139.59.132.30

🏓 Latency: 2.34 ms
🚫 Packet Loss: 0.00%

📥 Download: 3200.45 Mbps
📤 Upload: 2800.67 Mbps

Building from Source

git clone https://github.com/ruchernchong/cloudflare-speedtest.git
cd cloudflare-speedtest
pnpm install
pnpm run build
node dist/index.js

Why am I using TS to write this CLI instead of other language?

Because I am intending to use cloudflare/speedtest in the future once issue #17 is resolved.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Package Sidebar

Install

npm i cf-speedtest

Weekly Downloads

255

Version

0.2.4

License

MIT

Unpacked Size

8.94 kB

Total Files

8

Last publish

Collaborators

  • ruchernchong