download-repo
Download github repo with ease.
Install
$ npm install --save download-repo
Usage
const downloadRepo = // download egoist/tooling's master branch archive // download reactjs/redux by tag v4.0.0
API
downloadRepo(repo, [options])
repo
Type: string
User's repo, format like owner/repo
options
target
Type: string
Default: the original filename, format like reponame-[branch|tag]
The target name.
dir
Type: string
Default: process.cwd()
The directory to move the target to.
branch
Type: string
Default: master
The branch to download.
tag
Type: string
The tag to download, will override branch
if set.
quiet
Type: boolean
Default: false
Omit the progress bar when downloading.
License
MIT © EGOIST