1.0.1 • Published 2 years ago

fetch-gitee-repo v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

#download-gitee-repo Download and extract a git repository (GitHub, GitLab, Bitbucket, gitee) from node. #Installation

$ npm install download-gitee-repo

#API ##download(repository, destination, options, callback) Download a git repository to a destination folder with options, and callback. ##repository The shorthand repository string to download the repository from:

  • GitHub - github:owner/name or simply owner/name
  • Gitee - giteehub:owner/name or simply owner/name
  • GitLab - gitlab:owner/name
  • Bitbucket - bitbucket:owner/name

The repository parameter defaults to the master branch, but you can specify a branch or tag as a URL fragment like owner/name#my-branch. In addition to specifying the type of where to download, you can also specify a custom origin like gitlab:custom.com:owner/name. Custom origin will default to https or git@ for http and clone downloads respectively, unless protocol is specified. Feel free to submit an issue or pull request for additional origin options. #Examples ##Shorthand Using http download from Github repository at master.

download('flippidippi/download-git-repo-fixture', 'test/tmp', function (err) {
  console.log(err ? 'Error' : 'Success')
})