Skip to content

Commit 8e2fb77

Browse files
committed
更新开发说明文档
1 parent 1dea6b5 commit 8e2fb77

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

README.md

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ Linux Command
1414

1515
[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)
1616

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+
1743
#### Chrome 插件
1844

1945
可在[源码仓库](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
114140

115141
yes
116142

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-
140143
## Linux学习资源整理
141144

142145

0 commit comments

Comments
 (0)