1.1.6 • Published 7 years ago
xy-plugin-block v1.1.6
xy-plugin-block
提供给 xy 命令使用的插件,用于下载 github 仓库、目录或单个文件。
对外提供了 block(repo: string, destDir: string): Promise<void> 方法,
| 参数 | 说明 |
|---|---|
| repo | github 仓库地址 |
| destDir | 下载的目标地址 |
使用方法
import { block } from 'xy-plugin-block';
block('https://github.com/xxxxxx', './test');1.1.6
7 years ago