1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# 🧹 Deppa
> Dependency scanner and pruner
Deppa finds and deletes dependency and build output directories (`node_modules`, `target`, `.next`, etc.) that accumulate across your projects and silently consume disk space.
Deppa is written in [Go](https://go.dev) and uses [Bubble Tea](https://github.com/charmbracelet/bubbletea) for its terminal interface.
<p align="center">
<img src="./assets/example_screenshot.png" alt="Example Screenshot">
</p>
## Usage
```bash
deppa # Scan from the current directory
deppa ~/Developer # Scan from a specific path
```
## Installation
```bash
go install github.com/Fuwn/deppa@latest
```
Or build from source:
```bash
git clone https://github.com/Fuwn/deppa.git
cd deppa
task build
task install
```
## Keybindings
| Key | Action |
|-----|--------|
| `j/k` | Navigate down/up |
| `space` | Toggle selection |
| `a` | Toggle all |
| `enter` | Delete selected |
| `q` | Quit |
## Detected Directories
`node_modules`, `target`, `.next`, `.nuxt`, `__pycache__`, `.venv`, `venv`, `.gradle`, `Pods`, `.zig-cache`, `zig-cache`, `zig-out`, `_build`, `.dart_tool`
Want to add a new detected or ignored directory? Open a PR to [`scanner.go`](https://github.com/Fuwn/deppa/blob/main/scanner.go) after testing.
## Licence
Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or
[MIT license](LICENSE-MIT) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.
|