# git-repo-downloader

> download git repo from github、gitlab

Latest version **0.0.6** (published 2017-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-repo-downloader
pnpm add git-repo-downloader
yarn add git-repo-downloader
bun add git-repo-downloader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-06-06 |
| First published | 2017-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yxxx5 |
| Maintainers | yxxx5 |
| Keywords | git, git-download, download |

## Links

- npm: https://www.npmjs.com/package/git-repo-downloader
- Repository: https://github.com/yxxx5/git-download
- Homepage: https://github.com/yxxx5/git-download#readme
- Issues: https://github.com/yxxx5/git-download/issues
- npm.io page: https://npm.io/package/git-repo-downloader

## Dependencies (6)

- [q](https://npm.io/package/q.md) ^1.4.1
- [unzip](https://npm.io/package/unzip.md) ^0.1.11
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [download](https://npm.io/package/download.md) ^5.0.3
- [contentstream](https://npm.io/package/contentstream.md) ^1.0.0
- [promise-from-stream](https://npm.io/package/promise-from-stream.md) ^0.2.2

## Recent versions

- 0.0.6 (latest) — 2017-06-06
- 0.0.5 — 2017-06-06
- 0.0.4 — 2017-06-05
- 0.0.3 — 2017-04-05
- 0.0.2 — 2017-03-27
- 0.0.1 — 2017-03-23
- 0.0.0 — 2017-03-08

## README

### git-repo-downloader
download git repo from github、gitlab

#### install

    $ npm install --save download

#### Usage

    const download = require('git-repo-downloader')
    download('yxxx5/git-download', {
      clone : true
     })
    async function d(){
      await await download('github:github.com:yxxx5/git-download', {
          clone: false,
          dest: './'
      })
      //done
    }

#### API
    const download = require('git-repo-downloader')
    download(repo, [options])

##### repo
    type String
        type:host/owner/name/branch
        github:github.com:yxxx5/git-download/master
##### options
    type object
        dest:   String
            path to where file will be written
        clone: boolean
            whether use git clone or not

---
_Source: https://npm.io/package/git-repo-downloader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
