open-index/open-npm huggingface dataset:
npm package: @markusylisiurunen/dff
Description: diff review UI for local diffs
Latest version: 0.0.3

# dff

a minimal diff review UI. `dff` runs `git diff`, starts a local server, and serves a web UI for reviewing changes.

## installation

```sh
npm install -g @markusylisiurunen/dff@latest
```

## usage

```sh
dff
# or pass args straight to git diff
dff main..feature
```

open the UI automatically:

```sh
dff --open
```

pipe a diff through stdin:

```sh
git diff main..feature | dff
```

when you quit the CLI with `ctrl+c`, it prints review comments as markdown to stdout. the
"Submit review" button in the UI also exits and prints the comments.

## development

```sh
npm install
npm run build
npm run start
```

for the UI only:

```sh
npm run dev:web
```