@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.
- package/README.md +2 -2
- package/package.json +1 -1
- 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
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`,
|