Crates.io | kondo |
lib.rs | kondo |
version | 0.8.0 |
source | src |
created_at | 2020-01-27 03:54:04.075842 |
updated_at | 2023-12-19 09:50:48.644062 |
description | 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. |
homepage | https://github.com/tbillington/kondo |
repository | https://github.com/tbillington/kondo |
max_upload_size | |
id | 202319 |
size | 30,383 |
Cleans node_modules
, target
, build
, and friends from your projects.
Excellent if
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#)
Warning
Kondo is essentially
rm -rf
with a prompt. Use at your own discretion. Always have a backup of your projects.
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.
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.
Warning
Kondo is essentially
rm -rf
with a prompt. Use at your own discretion. Always have a backup of your projects.
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
.
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.