1.1.6 • Published 5 years ago

xy-plugin-block v1.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

xy-plugin-block

提供给 xy 命令使用的插件,用于下载 github 仓库、目录或单个文件。

对外提供了 block(repo: string, destDir: string): Promise<void> 方法,

参数说明
repogithub 仓库地址
destDir下载的目标地址

使用方法

import { block } from 'xy-plugin-block';

block('https://github.com/xxxxxx', './test');