Git Product home page Git Product logo

kondo's Introduction

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

16 Supported Project Types

Cargo - Node - Unity - Scala SBT - Haskell Stack - Maven - Unreal Engine - Python

Jupyter Notebook - CMake - Composer - Pub - Elixir - Swift - Gradle - Zig

Pull requests are welcome, it's easy to extend!

Current deleted directories config.

kondo cli cleaning projects

kondo gui displaying projects

CLI Video
kondo-cli-preview-clean.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

kondo's People

Contributors

tbillington avatar s-aditya-k avatar gzsombor avatar dependabot[bot] avatar aszecsei avatar striezel avatar lipen avatar orhun avatar deadcoder0904 avatar aschiavon91 avatar arlllk avatar pilltime avatar colindean avatar stunkymonkey avatar janvhs avatar aursen avatar br1ght0ne avatar pbevin avatar sassman avatar pawamoy avatar desdaemon avatar vrmiguel avatar wesleyklop avatar xampprocky avatar ysndr avatar gabrielztk avatar trag1c avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.