@vincentzyuapps/winload 0.1.7-rc.9 → 0.1.8-beta.1
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/bin.js +2 -2
- package/index.js +8 -8
- package/package.json +7 -7
- package/readme.md +24 -3
package/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* winload
|
|
4
|
+
* @vincentzyuapps/winload — CLI entry point
|
|
5
5
|
*
|
|
6
6
|
* 定位当前平台的预编译二进制并透传所有参数执行。
|
|
7
|
-
* 用户通过 `npx winload
|
|
7
|
+
* 用户通过 `npx @vincentzyuapps/winload` 或全局安装后直接 `winload` 即可运行。
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
"use strict";
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* winload
|
|
2
|
+
* @vincentzyuapps/winload — binary path resolver
|
|
3
3
|
*
|
|
4
4
|
* npm 安装时会根据 optionalDependencies 中各平台包的 os/cpu 字段,
|
|
5
5
|
* 仅下载与当前平台匹配的那一个。此模块负责定位该平台包中的二进制。
|
|
@@ -17,12 +17,12 @@ const path = require("path");
|
|
|
17
17
|
* value: npm 平台包名
|
|
18
18
|
*/
|
|
19
19
|
const PLATFORMS = {
|
|
20
|
-
"win32-x64": "winload-
|
|
21
|
-
"win32-arm64": "winload-
|
|
22
|
-
"linux-x64": "winload-
|
|
23
|
-
"linux-arm64": "winload-
|
|
24
|
-
"darwin-x64": "winload-
|
|
25
|
-
"darwin-arm64": "winload-
|
|
20
|
+
"win32-x64": "@vincentzyuapps/winload-win32-x64",
|
|
21
|
+
"win32-arm64": "@vincentzyuapps/winload-win32-arm64",
|
|
22
|
+
"linux-x64": "@vincentzyuapps/winload-linux-x64",
|
|
23
|
+
"linux-arm64": "@vincentzyuapps/winload-linux-arm64",
|
|
24
|
+
"darwin-x64": "@vincentzyuapps/winload-darwin-x64",
|
|
25
|
+
"darwin-arm64": "@vincentzyuapps/winload-darwin-arm64",
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -50,7 +50,7 @@ function getBinaryPath() {
|
|
|
50
50
|
} catch {
|
|
51
51
|
throw new Error(
|
|
52
52
|
`winload: platform package "${pkg}" not found\n` +
|
|
53
|
-
`Try reinstalling: npm install winload
|
|
53
|
+
`Try reinstalling: npm install @vincentzyuapps/winload\n` +
|
|
54
54
|
`Or download manually: https://github.com/VincentZyuApps/winload/releases`
|
|
55
55
|
);
|
|
56
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincentzyuapps/winload",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8-beta.1",
|
|
4
4
|
"description": "Network Load Monitor — nload-like TUI tool for Windows/Linux/macOS (prebuilt Rust binary)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@vincentzyuapps/winload-win32-x64": "0.1.
|
|
37
|
-
"@vincentzyuapps/winload-win32-arm64": "0.1.
|
|
38
|
-
"@vincentzyuapps/winload-linux-x64": "0.1.
|
|
39
|
-
"@vincentzyuapps/winload-linux-arm64": "0.1.
|
|
40
|
-
"@vincentzyuapps/winload-darwin-x64": "0.1.
|
|
41
|
-
"@vincentzyuapps/winload-darwin-arm64": "0.1.
|
|
36
|
+
"@vincentzyuapps/winload-win32-x64": "0.1.8-beta.1",
|
|
37
|
+
"@vincentzyuapps/winload-win32-arm64": "0.1.8-beta.1",
|
|
38
|
+
"@vincentzyuapps/winload-linux-x64": "0.1.8-beta.1",
|
|
39
|
+
"@vincentzyuapps/winload-linux-arm64": "0.1.8-beta.1",
|
|
40
|
+
"@vincentzyuapps/winload-darwin-x64": "0.1.8-beta.1",
|
|
41
|
+
"@vincentzyuapps/winload-darwin-arm64": "0.1.8-beta.1"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/readme.md
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
> **[📖 Build Docs](.github/workflows/build.md)**
|
|
31
31
|
|
|
32
32
|
## 🚀 Introduction
|
|
33
|
-
Winload brings an intuitive, visual network monitor to the modern terminal. It started as a Windows-focused tool to fill the nload gap, and now targets Linux and macOS as well.
|
|
33
|
+
`Winload` brings an intuitive, visual network monitor to the modern terminal. It started as a Windows-focused tool to fill the `nload` gap, and now targets Linux and macOS as well.
|
|
34
34
|
|
|
35
35
|
## 🙏 Acknowledgements
|
|
36
|
-
Winload is inspired by the classic nload project by Roland Riegel. Many thanks for the original idea and experience.
|
|
36
|
+
Winload is inspired by the classic 「[nload](https://github.com/rolandriegel/nload)」 project by Roland Riegel. Many thanks for the original idea and experience.
|
|
37
37
|
https://github.com/rolandriegel/nload
|
|
38
38
|
|
|
39
39
|
## ✨ Key Features
|
|
@@ -44,7 +44,12 @@ https://github.com/rolandriegel/nload
|
|
|
44
44
|
- **Real-time visualization**: live incoming/outgoing graphs and throughput stats.
|
|
45
45
|
- **Minimal UI**: clean TUI that mirrors nload's ergonomics.
|
|
46
46
|
|
|
47
|
-
##
|
|
47
|
+
## 📊 Performance Benchmarks
|
|
48
|
+
> ⚡ Winload (Rust) achieves **~10ms startup** and **<5MB binary size**, significantly outperforming Python and matching C++ nload in efficiency.
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
## 🐍 Python Edition Installation
|
|
48
53
|
> 💡 **Implementation Note**: Only PyPI and GitHub/Gitee provide Python edition.
|
|
49
54
|
> Only Cargo provides Rust source code for local compilation.
|
|
50
55
|
> All other package managers (Scoop, AUR, npm, APT, RPM) and GitHub Releases distribute **Rust binaries only**.
|
|
@@ -88,6 +93,12 @@ win-nload
|
|
|
88
93
|
Get-Command win-nload # Powershell
|
|
89
94
|
where win-nload # CMD
|
|
90
95
|
```
|
|
96
|
+
> 💡 Recommended: use [Windows Terminal](https://github.com/microsoft/terminal) instead of the legacy Windows Console for correct CJK character rendering and better TUI experience.
|
|
97
|
+
> ```powershell
|
|
98
|
+
> scoop bucket add versions
|
|
99
|
+
> scoop install windows-terminal-preview
|
|
100
|
+
> wtp
|
|
101
|
+
> ```
|
|
91
102
|
|
|
92
103
|
### Arch Linux (AUR):
|
|
93
104
|
```bash
|
|
@@ -105,6 +116,15 @@ which winload
|
|
|
105
116
|
```
|
|
106
117
|
> 📄 [View install script source](https://github.com/VincentZyuApps/winload/blob/main/docs/install_scripts/install.sh)
|
|
107
118
|
|
|
119
|
+
**🇨🇳 Gitee mirror (faster in China Mainland):**
|
|
120
|
+
```bash
|
|
121
|
+
curl -fsSL https://gitee.com/vincent-zyu/winload/raw/main/docs/install_scripts/install_gitee.sh | bash
|
|
122
|
+
which winload
|
|
123
|
+
```
|
|
124
|
+
> 📄 [View Gitee install script](https://gitee.com/vincent-zyu/winload/blob/main/docs/install_scripts/install_gitee.sh)
|
|
125
|
+
|
|
126
|
+
> ⚠️ These install scripts only support systems with **apt or dnf** package managers on **x86_64 / aarch64** architectures. For other platforms, use **npm** (`npm install -g @vincentzyuapps/winload`) or **Cargo** (`cargo install winload`) instead.
|
|
127
|
+
|
|
108
128
|
<details>
|
|
109
129
|
<summary>Manual install</summary>
|
|
110
130
|
|
|
@@ -154,6 +174,7 @@ winload --npcap # Capture 127.0.0.1 loopback traffic (Windows, requires Npc
|
|
|
154
174
|
| `-n`, `--no-graph` | Hide graph, show stats only | off |
|
|
155
175
|
| `--hide-separator` | Hide the separator line (row of equals signs) | off |
|
|
156
176
|
| `--no-color` | Disable all TUI colors (monochrome mode) | off |
|
|
177
|
+
| `--smart-max [SECS]` | **[Rust Only]** Smart adaptive Y-axis: auto-decays after traffic spikes (default half-life: 5s) | off |
|
|
157
178
|
| `--npcap` | **[Windows Rust Only]** Capture loopback traffic via Npcap (recommended) | off |
|
|
158
179
|
| `--debug-info` | **[Rust Only]** Print network interface debug info and exit | — |
|
|
159
180
|
| `-h`, `--help` | Print help (`--help --emoji` for emoji version!) | — |
|