#cleanup #clean #free #delete #cargo-build #cargo-clean #build-tool

app kondo

kondo is a filesystem cleaning tool that recursively searches directories for known project structures and determines how much space you could save by deleting the unnecessary files

7 releases (breaking)

0.8.0 Dec 19, 2023
0.7.0 Jul 6, 2023
0.6.0 Mar 12, 2023
0.4.0 Jul 31, 2020
0.1.0 Jan 27, 2020

#376 in Command line utilities

Download history 30/week @ 2024-08-12 6/week @ 2024-08-19 15/week @ 2024-08-26 4/week @ 2024-09-02 20/week @ 2024-09-09 17/week @ 2024-09-16 33/week @ 2024-09-23 16/week @ 2024-09-30 20/week @ 2024-10-07 21/week @ 2024-10-14 2/week @ 2024-10-21 9/week @ 2024-10-28 23/week @ 2024-11-04 15/week @ 2024-11-11 13/week @ 2024-11-18 9/week @ 2024-11-25

62 downloads per month

MIT license

41KB
822 lines

Kondo ๐Ÿงน

Cleans node_modules, target, build, and friends from your projects.

Excellent if

  • ๐Ÿ’พ You want to back up your code but don't want to include GBs of dependencies
  • ๐Ÿง‘โ€๐ŸŽจ You try out lots of projects but hate how much space they occupy
  • โšก๏ธ You like keeping your disks lean and zippy

20+ Supported Project Types

Cargo (Rust), CMake (C, C++), Composer (PHP), Elixir, Godot 4.x (C#, GDScript)

Gradle (Java) Jupyter Notebook (Python), Maven (Java), Node (JavaScript)

Pub (Dart), Python SBT (Scala), Stack (Haskell), Swift

Unity (C#), Unreal Engine (C++), Zig, .NET (C#, F#)

kondo cli cleaning projects kondo gui displaying projects
CLI Video

kondo-cli.webm

GUI Video

kondo-ui.webm

Installation

Warning

Kondo is essentially rm -rf with a prompt. Use at your own discretion. Always have a backup of your projects.

Command Line

Homebrew

brew install kondo

Arch Linux

pacman -S kondo

Source

Requires rust.

git clone https://github.com/tbillington/kondo.git
cargo install --path kondo/kondo

Others

Binaries available on the releases page.

Packaging status

Graphic User Interface

Arch Linux

pacman -S kondo-ui

Source

Requires rust. You may need platform specific dependencies on linux.

git clone https://github.com/tbillington/kondo.git
cargo install --path kondo/kondo-ui

Binaries available on the releases page.

Packaging status

Usage

Warning

Kondo is essentially rm -rf with a prompt. Use at your own discretion. Always have a backup of your projects.

Command Line Interface

Running kondo without a directory specified will run in the current directory.

kondo

Supplying a path will tell kondo where to start. Multiple paths are supported.

kondo code/my_project code/my_project_2

Passing a time will filter projects to those that haven't been modified for at least the specified period. See kondo --help for the full list of options.

kondo --older 3M # only projects with last modified greater than 3 months
kondo -o3M # shorthand

More options such as quiet mode, following symlinks, and filesystem restriction are viewable with kondo --help.

Building/Development

To build the cli kondo you can run cargo build and cargo run from the projects root directory.

To build the gui kondo-ui you must first navigate into the kondo-ui directory, then you can run cargo build and cargo run.

The output binaries will be located in target/debug/ or target/release/ per Cargo defaults.

Similar Projects

Dependencies

~5โ€“13MB
~159K SLoC