@flun/windows 3.0.6 → 3.0.8
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/CHANGELOG.md +10 -5
- package/README.md +14 -15
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# 变更日志
|
|
2
|
-
## [3.0.
|
|
2
|
+
## [3.0.8] - 2026-07-22 22:04
|
|
3
|
+
### 优化:
|
|
4
|
+
- 对 'README.md' 中一些描述做了一些优化;
|
|
5
|
+
- 对 'package.json' 的细节做了一些优化;
|
|
6
|
+
|
|
7
|
+
## [3.0.7] - 2026-07-07 16:07
|
|
8
|
+
### 优化
|
|
9
|
+
- 说明文档里的 `allowScripts` 配置示例放在安装指导前面;
|
|
3
10
|
|
|
11
|
+
## [3.0.6] - 2026-07-06 15:31
|
|
4
12
|
### 新增
|
|
5
|
-
- 在 README 中新增“配置”章节,指导用户通过 `allowScripts` 显式放行本包的安装脚本,避免因 `ignore-scripts` 全局配置导致钩子被跳过。
|
|
6
|
-
## [3.0.5] - 2026-06-16 20:09
|
|
7
|
-
### 变更
|
|
8
|
-
- 联系邮箱更改为:open@flun.top;
|
|
13
|
+
- 在 README 中新增“配置”章节,指导用户通过 `allowScripts` 显式放行本包的安装脚本,避免因 `ignore-scripts` 全局配置导致钩子被跳过。
|
package/README.md
CHANGED
|
@@ -20,18 +20,7 @@
|
|
|
20
20
|
- _权限检测_:检测当前用户是否具有管理员权限
|
|
21
21
|
- _进程列表_:列出运行中的 Windows 进程/服务
|
|
22
22
|
- _终止进程_:通过 PID 终止特定进程
|
|
23
|
-
|
|
24
|
-
## 安装
|
|
25
|
-
|
|
26
|
-
推荐通过 npm 全局安装:`npm i -g @flun/windows`
|
|
27
|
-
|
|
28
|
-
然后在项目根目录执行:`npm link @flun/windows`
|
|
29
|
-
|
|
30
|
-
局部安装:`npm i @flun/windows`
|
|
31
|
-
|
|
32
|
-
## 无原生模块依赖
|
|
33
|
-
|
|
34
|
-
Windows 上的原生 Node 模块安装复杂,通常需要 Visual Studio 和 node-gyp 进行编译;@flun/windows **不依赖任何原生模块**,所有二进制工具均已预打包,无需安装 Visual Studio 等编译环境;
|
|
23
|
+
---
|
|
35
24
|
|
|
36
25
|
## 配置
|
|
37
26
|
|
|
@@ -50,12 +39,22 @@ Windows 上的原生 Node 模块安装复杂,通常需要 Visual Studio 和 node
|
|
|
50
39
|
}
|
|
51
40
|
```
|
|
52
41
|
|
|
53
|
-
> 如果你信任所有安装包,也可以直接在项目 `.npmrc` 中设置 `allow-scripts = false
|
|
54
|
-
|
|
55
|
-
配置后,再次运行 `npm install` 即可正常执行所有安装钩子;
|
|
42
|
+
> 如果你信任所有安装包,也可以直接在项目 `.npmrc` 中设置 `allow-scripts = false`(表示关闭脚本拦截,所有脚本均允许执行),或删除 `ignore-scripts` 字段;
|
|
56
43
|
|
|
57
44
|
---
|
|
58
45
|
|
|
46
|
+
## 安装
|
|
47
|
+
|
|
48
|
+
推荐通过 npm 全局安装:`npm i -g @flun/windows`
|
|
49
|
+
|
|
50
|
+
然后在项目根目录执行:`npm link @flun/windows`
|
|
51
|
+
|
|
52
|
+
局部安装:`npm i @flun/windows`
|
|
53
|
+
|
|
54
|
+
## 无原生模块依赖
|
|
55
|
+
|
|
56
|
+
Windows 上的原生 Node 模块安装复杂,通常需要 Visual Studio 和 node-gyp 进行编译;@flun/windows **不依赖任何原生模块**,所有二进制工具均已预打包,无需安装 Visual Studio 等编译环境;
|
|
57
|
+
|
|
59
58
|
# Windows 服务管理
|
|
60
59
|
|
|
61
60
|
@flun/windows 可将 Node.js 脚本转换为 Windows 服务;注意:创建服务需要管理员权限!!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flun/windows",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "支持 Windows 服务、事件日志、UAC 以及多种与操作系统交互的辅助方法",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"windows",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"index.js",
|
|
31
31
|
"sevWin.js",
|
|
32
32
|
"copy-files.js",
|
|
33
|
-
"README.md",
|
|
34
33
|
"CHANGELOG.md",
|
|
34
|
+
"README.md",
|
|
35
35
|
"LICENSE"
|
|
36
36
|
],
|
|
37
37
|
"preferGlobal": true,
|