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.
Files changed (2) hide show
  1. package/README.md +5 -11
  2. 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
- 支持的单位:`s` 秒 / `m` 分钟 / `h` 小时 / `d` 天(以及 sec、min、hour、秒、分钟、小时等写法),可以自由组合(如 `1h30m`)。
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.1",
4
- "description": "Timed shutdown command tool",
5
- "type": "module",
6
- "license": "MIT",
7
- "bin": {
8
- "pczzz": "dist/cli.js"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "engines": {
14
- "node": ">=20"
15
- },
16
- "keywords": [
17
- "shutdown",
18
- "poweroff",
19
- "timed shutdown",
20
- "windows",
21
- "pczzz"
22
- ],
23
- "scripts": {
24
- "build": "tsc",
25
- "test": "node test/smoke.mjs",
26
- "prepublishOnly": "npm run build && npm test"
27
- },
28
- "devDependencies": {
29
- "@types/node": "^22.0.0",
30
- "typescript": "^5.6.0"
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
+ }