HuakunShen / devclean

A CLI and Desktop GUI app to clean dev dependencies (node_modules, cache) and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devclean

Crates.io Version Rust publish

devclean is a tool and library for cleaning up development directories.

GUI App

The GUI App can be found in the releases.

CLI

Installation

cargo install devclean

Features

Find Git Repo with Uncommitted Changes

Before removing a directory, it is important to check if there are any uncommitted changes in the directory. This feature finds all git repositories with uncommitted changes.

devclean find-dirty-git <path>
❯ devclean find-dirty-git ..
⠁ Scanning: /Users/xxx/Dev/projects/devclean
Path                                | Depth | Size
-------------------------------------+-------+---------
 /Users/xxx/Dev/projects/devclean | 0     | 1.3 GiB

Find Cache and Dependencies Directories To Clean

Code projects can have large cache and dependency directories that can be cleaned up to save disk space.

Supported Projects / Languages
  • Node.js node_modules
  • Rust target
Usage
devclean <path>
devclean <path> --dry-run   # Won't remove anything
devclean <path> --all       # Select all found directories by default
devclean <path> -y          # Skip confirmation
devclean <path> -t          # Time Scanning and Cleaning

About

A CLI and Desktop GUI app to clean dev dependencies (node_modules, cache) and more.

License:MIT License


Languages

Language:TypeScript 71.2%Language:Rust 24.4%Language:JavaScript 2.3%Language:CSS 1.8%Language:HTML 0.4%