@@ -14,6 +14,32 @@ Linux Command
14
14
15
15
[ Github Web] ( https://jaywcjlove.github.io/linux-command/ ) | [ OSChina Web] ( http://jaywcjlove.gitee.io/linux-command/ ) | [ Web 1] ( http://linux-command.composer-proxy.org/ ) | [ Alfred] ( https://github.com/jaywcjlove/linux-command/releases ) | [ Krunner] ( https://github.com/roachsinai/krunner-linuxcommands ) | [ Android] ( https://github.com/Ernest-su/LinuxCmd.git ) | [ Mac/Win/Linux] ( https://github.com/haloislet/linux-command ) | [ Chrome Plugin] ( https://github.com/jaywcjlove/oscnews )
16
16
17
+ ## 开发使用
18
+
19
+ 可以通过 ` npm ` 安装 ` linux-command ` 包,包含所有命令的 markdown 文本,和一个[ 索引文件] ( dist/data.json ) 。
20
+
21
+ ``` bash
22
+ npm install linux-command
23
+ ```
24
+
25
+ ``` js
26
+ var comm = require (" linux-command" )
27
+ console .log (" ---->" ,comm .ls )
28
+
29
+ var alias = require (" linux-command/command/alias.md" )
30
+ console .log (" ---->" ,alias) // markdown string
31
+ ```
32
+
33
+ 你也可以通过 CDN 来访问索引数据,和对应的命令详细内容,我将更新内容定期发布版本,提供大家使用,UNPKG 带上版本号,将锁定版本访问,删除版本号请求数据,将会自动重定向最新版本。
34
+
35
+ https://unpkg.com/linux-command/dist/data.json 命令索引 JSON 数据
36
+ https://unpkg.com/linux-command/command/alias.md 对应命令详情(Markdown)数据
37
+
38
+ 你也可以通过 Github 的 Raw 来回去最新的内容
39
+
40
+ https://raw.githubusercontent.com/jaywcjlove/linux-command/master/dist/data.json 命令索引 JSON 数据
41
+ https://raw.githubusercontent.com/jaywcjlove/linux-command/master/command/alias.md 对应命令详情(Markdown)数据
42
+
17
43
#### Chrome 插件
18
44
19
45
可在[ 源码仓库] ( https://github.com/jaywcjlove/oscnews ) 预览效果,[ Github下载 oscnews.crx 文件] ( https://github.com/jaywcjlove/oscnews/releases ) 或者[ 开源中国下载 oscnews.crx 文件] ( https://gitee.com/jaywcjlove/oscnews/releases ) 也可通过 Chrome Web Store 下载:
@@ -114,29 +140,6 @@ archive、ctlinnd、elm、getlist、inncheck、mail、mailconf、mailq、message
114
140
115
141
yes
116
142
117
- ## 使用
118
-
119
- ### Node调用
120
-
121
- ```
122
- npm install linux-command
123
- ```
124
-
125
-
126
- ``` js
127
- var comm = require (" linux-command" )
128
- console .log (" ---->" ,comm .ls )
129
-
130
- var alias = require (" linux-command/command/alias.md" )
131
- console .log (" ---->" ,alias) // markdown string
132
- ```
133
-
134
- ### CDN
135
-
136
- https://unpkg.com/linux-command/dist/data.json 命令总 JSON 数据
137
- https://unpkg.com/linux-command/command/alias.md 对应命令详情(Markdown)数据
138
-
139
-
140
143
## Linux学习资源整理
141
144
142
145
0 commit comments