pczzz 0.0.1 → 0.0.7
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 +5 -11
- package/package.json +40 -32
package/README.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
# pcoff
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Timed shutdown command tool
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Global installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install -g pcoff
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
### 命令行直接指定时间
|
|
11
|
+
## Usage
|
|
14
12
|
|
|
15
13
|
```bash
|
|
16
14
|
pcoff 1s # 1 秒后关机
|
|
@@ -21,13 +19,9 @@ pcoff 90 # 纯数字按秒计
|
|
|
21
19
|
pcoff 30秒 # 中文单位也可以
|
|
22
20
|
```
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### 交互式菜单
|
|
27
|
-
|
|
28
|
-
直接运行 `pcoff`(不带参数):
|
|
22
|
+
or `pcoff`
|
|
29
23
|
|
|
30
|
-
```
|
|
24
|
+
```bash
|
|
31
25
|
你想多久关机?
|
|
32
26
|
1. 30 秒
|
|
33
27
|
2. 20 分钟
|
package/package.json
CHANGED
|
@@ -1,32 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pczzz",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Timed shutdown command tool",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "pczzz",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "Timed shutdown command tool",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/hnxycxd/pczzz.git"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"pczzz": "dist/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"author": "chengxudong",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"shutdown",
|
|
26
|
+
"poweroff",
|
|
27
|
+
"timed shutdown",
|
|
28
|
+
"windows",
|
|
29
|
+
"pczzz"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc",
|
|
33
|
+
"test": "node test/smoke.mjs",
|
|
34
|
+
"prepublishOnly": "npm run build && npm test"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^22.0.0",
|
|
38
|
+
"typescript": "^5.6.0"
|
|
39
|
+
}
|
|
40
|
+
}
|