super-dns 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +14 -25
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,42 +12,31 @@
12
12
 
13
13
  ## 快速开始
14
14
 
15
+ ### 方式一:npx 直接运行(无需安装)
16
+
15
17
  ```bash
16
- # 本地开发测试
17
- npm start
18
- # 或
19
- node index.js
18
+ npx super-dns
20
19
  ```
21
20
 
22
- 首次启动会自动创建配置文件 `~/.config/super-dns/domains`,并弹出密码框配置 macOS 独立解析器。
23
-
24
- ## 生产环境部署
25
-
26
- 使用 pm2 + npx 实现进程守护和自动重启:
21
+ ### 方式二:全局安装
27
22
 
28
23
  ```bash
29
- # 1. 发布到 npm(首次)
30
- npm publish
31
-
32
- # 2. 用 pm2 启动
33
- pm2 start npx --name super-dns -- super-dns
34
-
35
- # 3. 保存进程列表
36
- pm2 save
37
-
38
- # 4. 设置开机自启(按提示执行输出的命令)
39
- pm2 startup
24
+ npm install -g super-dns
25
+ super-dns
40
26
  ```
41
27
 
42
- 或者全局安装后启动:
28
+ 首次启动会自动创建配置文件 `~/.config/super-dns/domains`,并弹出密码框配置 macOS 独立解析器。
29
+
30
+ ### 方式三:pm2 守护进程(推荐生产使用)
43
31
 
44
32
  ```bash
45
- # 全局安装
46
- npm install -g super-dns
33
+ # 用 pm2 启动
34
+ pm2 start npx --name super-dns -- super-dns
47
35
 
48
- # pm2 启动
49
- pm2 start super-dns --name super-dns
36
+ # 保存进程列表
50
37
  pm2 save
38
+
39
+ # 设置开机自启(按提示执行输出的命令)
51
40
  pm2 startup
52
41
  ```
53
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-dns",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "真实 dns,防劫持用的",
5
5
  "homepage": "https://github.com/jayli/super-dns#readme",
6
6
  "bugs": {