@mu1147-legend/cf-speed-test 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/utils.js +2 -2
package/README.md CHANGED
@@ -18,7 +18,7 @@ Includes:
18
18
  ### Run instantly (no install)
19
19
 
20
20
  ```bash
21
- npx cf-speed-test
21
+ npx @mu1147-legend/cf-speed-test
22
22
  ```
23
23
 
24
24
  ---
@@ -26,7 +26,7 @@ npx cf-speed-test
26
26
  ### Install globally
27
27
 
28
28
  ```bash
29
- npm install -g cf-speed-test
29
+ npm install -g @mu1147-legend/cf-speed-test
30
30
  ```
31
31
 
32
32
  Then run:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mu1147-legend/cf-speed-test",
3
3
  "author": "Muhammad Ullah",
4
4
  "license": "MIT",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "description": "CLI Speed Test Tool (Download, Upload, Ping, Jitter)",
7
7
  "keywords": [
8
8
  "speedtest",
package/utils.js CHANGED
@@ -94,7 +94,7 @@ export async function downloadTest(url, connections, signal) {
94
94
  { color: "#ffffff", pos: clamp(shift + 0.1) },
95
95
  { color: "#aaaaaa", pos: clamp(shift + 0.2) },
96
96
  { color: "#555555", pos: 1 },
97
- ])(`⬇ Testing download...`);
97
+ ])(`⬇ Testing download... ${safePercent.toFixed(0)}%`);
98
98
 
99
99
  process.stdout.write(
100
100
  `\r${animatedText} [${bar}] ${speed.toFixed(2)} Mbps`,
@@ -191,7 +191,7 @@ export async function uploadTest(url, sizeMB, connections, signal) {
191
191
  { color: "#ffffff", pos: clamp(shift + 0.1) },
192
192
  { color: "#aaaaaa", pos: clamp(shift + 0.2) },
193
193
  { color: "#555555", pos: 1 },
194
- ])(`⬆ Testing upload...`);
194
+ ])(`⬆ Testing upload... ${percent.toFixed(0)}%`);
195
195
 
196
196
  process.stdout.write(
197
197
  `\r${animatedText} [${bar}] ${speed.toFixed(2)} Mbps`,