File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ sidebarDepth: 0
10
10
* [ handlebars] ( https://github.com/wycats/handlebars.js ) :一个 javascript 语以模版库。
11
11
* [ metalsmith] ( https://github.com/segmentio/metalsmith ) ;An extremely simple, pluggable static site generator。
12
12
* [ chalk] ( https://github.com/chalk/chalk ) :Terminal string styling done right。
13
- * [ download-git-repo] ( https://github.com/flipxfx/download-git-repo )
13
+ * [ download-git-repo] ( https://github.com/flipxfx/download-git-repo ) :Download and extract a git repository (GitHub, GitLab, Bitbucket) from node。
14
14
* [ consolidate] ( https://github.com/tj/consolidate.js )
15
15
16
16
下面逐个介绍:
@@ -139,4 +139,18 @@ function plugin(opts){
139
139
const chalk = require (' chalk' );
140
140
console .log (chalk .blue (' Hello world!' ));
141
141
```
142
- 更多的用法以及 ` API ` 可查看[ 详细文档] ( https://github.com/chalk/chalk )
142
+ 更多的用法以及 ` API ` 可查看[ 详细文档] ( https://github.com/chalk/chalk ) 。
143
+
144
+
145
+ # download-git-repo
146
+ ` download-git-repo ` 是用于 从 ` GitHub ` , ` GitLab ` , ` Bitbucket ` 下载一个 ` git ` 仓库,` API ` 如下:
147
+ ``` javascript
148
+ download (repository, destination, options, callback)
149
+ ```
150
+
151
+ * repository:仓库地址。
152
+ * destination:存放下载 git 仓库的路径。
153
+ * options:选项,clone。是以 http download 的形式还是 git clone 的形式下载。其中 git clone 的形式支持下载 private 仓库。
154
+ * callback:下载完成地回调。
155
+
156
+ 更多例子可查看 [ 详细文档] ( https://github.com/flipxfx/download-git-repo ) 。
You can’t perform that action at this time.
0 commit comments