# @fatyu/node-git-diff

> git diff 脚本

Latest version **0.4.0** (published 2021-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fatyu/node-git-diff
pnpm add @fatyu/node-git-diff
yarn add @fatyu/node-git-diff
bun add @fatyu/node-git-diff
```

Provides the command `git-diff`.

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2021-05-14 |
| First published | 2021-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 27.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Arima |
| Maintainers | arimap |
| Keywords | git, diff, node, ts, shell |

## Links

- npm: https://www.npmjs.com/package/@fatyu/node-git-diff
- Homepage: https://github.com/Arima-P/zhy-utils/tree/main/packages/git-diff#fatyugit-diff
- npm.io page: https://npm.io/package/@fatyu/node-git-diff

## Dependencies (5)

- [execa](https://npm.io/package/execa.md) ^5.0.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [commander](https://npm.io/package/commander.md) ^7.2.0
- [@fatyu/utils](https://npm.io/package/@fatyu/utils.md) 1.2.0

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 0.4.0 (latest) — 2021-05-14
- 0.3.1 — 2021-05-14
- 0.3.0 — 2021-05-14
- 0.2.0 — 2021-05-14

## README

# @fatyu/git-diff

## 能力

- 通过命令行快速选择需要 diff 的分支、tag、commit
- 支持输出简单的比较结果 csv
  - 包含修改文件路径、修改行数
  - 可以过滤不需要比较文件类型

## 快速开始

### 安装

```sh
# npm
npm i @fatyu/git-diff -D

# yarn
yarn add @fatyu/git-diff -D
```

### 使用

```sh
# 简单使用

  # npm
  npm git-diff

  # yarn
  yarn git-diff

# 更多例子（yarn 为例)

  # 帮助
  yarn git-diff -h
```

### 命令行参数

| 简写 | 参数                | 含义                                                           |
| :--- | :------------------ | :------------------------------------------------------------- |
| -v   | --version           | @fatyu/git-diff 的版本                                         |
| -f   | --file-type [type]  | 输出文件类型 (choices: "csv", "diff", "patch", default: "csv") |
| -s   | --source [source]   | 来源分支、tag、commit                                          |
| -t   | --target [target]   | 目标分支、tag、commit                                          |
| -e   | --exclude [exclude] | 需要忽略的文件类型，以`竖线`分割                               |
| -h   | --help              | 输出帮助内容                                                   |

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