# git-down-repo

> Download git-repo for any url

Latest version **2.4.3** (published 2019-01-12) · ISC license · 0 weekly downloads

## Install

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

Provides the command `gitdown`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.3 |
| Published | 2019-01-12 |
| First published | 2018-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 (+25 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 56 |
| Author | hyf |
| Maintainers | hua1995116 |
| Keywords | git, node, github |

## Links

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

## Dependencies (7)

- [ora](https://npm.io/package/ora.md) ^2.1.0
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [request](https://npm.io/package/request.md) ^2.87.0
- [inquirer](https://npm.io/package/inquirer.md) ^6.0.0
- [progress](https://npm.io/package/progress.md) ^2.0.0
- [log-symbols](https://npm.io/package/log-symbols.md) ^2.2.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 2.4.3 (latest) — 2019-01-12
- 2.4.2 — 2018-07-21
- 2.4.1 — 2018-07-21
- 2.4.0 — 2018-07-21
- 2.3.1 — 2018-07-19
- 2.2.0 — 2018-07-16
- 2.1.0 — 2018-07-16
- 2.0.0 — 2018-07-16
- 1.8.0 — 2018-07-15
- 1.6.0 — 2018-07-14
- 1.5.0 — 2018-07-14
- 1.4.0 — 2018-07-14
- 1.3.0 — 2018-07-14
- 1.2.0 — 2018-07-14
- 1.0.0 — 2018-07-14

## README

# git-down-repo

<p algin="center">
    <a href="https://npmcharts.com/compare/git-down-repo?minimal=true" rel="nofollow"><img src="https://img.shields.io/npm/dm/git-down-repo.svg" style="max-width:100%;"></a>
    <a href="https://www.npmjs.com/package/git-down-repo" rel="nofollow"><img src="https://img.shields.io/npm/v/git-down-repo.svg" style="max-width:100%;"></a>
    <a href="https://www.npmjs.com/package/git-down-repo" rel="nofollow"><img src="https://img.shields.io/npm/l/git-down-repo.svg" style="max-width:100%;"></a>
</p>

# 开始

```Shell
npm install git-down-repo -g // 安装全局

// test 
gitdown https://github.com/hua1995116/webchat  // 下载整个仓库（默认master）

gitdown https://github.com/hua1995116/webchat dev // 下载某个仓库的dev分支

gitdown https://github.com/hua1995116/webchat/tree/master/config // 下载仓库某个文件夹

gitdown https://github.com/hua1995116/webchat/blob/master/config/dev.env.js // 下载某个文件

gitdown https://github.com/hua1995116/webchat/blob/master/config/dev.env.js https://github.com/hua1995116/webpack-plugin-inner-script/blob/master/index.js // 下载多个项目（空格分隔）
```

# node-modules

```
cnpm i git-down-repo
```
```
test.js

const gitdown = require('git-down-repo');

const gitdownFunc = gitdown();

gitdownFunc(['https://github.com/hua1995116/webchat/blob/master/.eslintrc.js']);

```

# 版本

## 2018.7.21
v2.5.3
1.修复中文乱码问题（url 支持utf-8）

v2.4.2

1.修复commongJS导致的bug

v2.4.1

1.支持以commonJs方式引入至项目中

## 2018.7.18
v2.3.1

1.支持多个链接形式
2.修复单个文件下载多余文件情况

## 2018.7.16
v2.3.0

1.优化体验，当本地存在需下载目录时候，可以选择是否继续覆盖

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