Skip to content

Commit 309d946

Browse files
committed
docs: scope name
1 parent 2425990 commit 309d946

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ raw.githubusercontent.com 在大陆的访问常常无法访问
101101

102102
您可以改成 `gkd-subscription-xxxx` 其中 `xxxx` 是订阅的 id 或者随机字母数字, 总之不冲突就行
103103

104+
或者改成 `@your_npm_name/subscription`, 这种类型是 scope 名称, 其中 `your_npm_name` 是你下面要注册的 npm 用户名
105+
104106
![image](https://github.com/gkd-kit/gkd/assets/38517192/79817967-6f97-4935-9bf3-179bbf50b3aa)
105107

106108
接下来获取 token, 你需要先注册 <https://www.npmjs.com>, 然后到 Access Tokens 界面点击 Generate New Token 选择 Classic Token 后随便输入 Name 选择 Publish 即可生成并复制
@@ -125,6 +127,12 @@ https://registry.npmmirror.com/gkd-subscription-xxxx/latest/files/dist/gkd.json5
125127

126128
注: 将 gkd-subscription-xxxx 换成您的包名
127129

130+
如果你的包名是 `@your_npm_name/subscription` 这种类型, 加速链接是
131+
132+
```txt
133+
https://registry.npmmirror.com/@your_npm_name/subscription/latest/files/dist/gkd.json5
134+
```
135+
128136
## 自定义配置文件
129137

130138
注意: **大多数情况下, 你不需要自定义, 使用默认配置时, 下面此节教程无需了解**

0 commit comments

Comments
 (0)