Shatter: One Command to Reclaim Gigabytes of Build Junk Across Every Language You Use
TL;DR: shatter is a cross-platform CLI tool that finds and obliterates build caches (node_modules, .next, __pycache__, .gradle, …) across all your projects with a single command. Think npkill but f...

Source: DEV Community
TL;DR: shatter is a cross-platform CLI tool that finds and obliterates build caches (node_modules, .next, __pycache__, .gradle, …) across all your projects with a single command. Think npkill but for every ecosystem. The Problem If you're like me, you have dozens of repos sitting on disk — course projects, side projects, experiments. Each one hoards node_modules, .next build caches, Python virtual environments, and more. Manually hunting them down is tedious. shatter automates the whole thing. What Is Shatter? Shatter is a Python CLI tool that: Scans any directory tree for known build artifacts and dependency folders Supports 10+ ecosystems — JavaScript, Python, Rust, Go, PHP, Ruby, Java, .NET, Dart, Expo Computes sizes in parallel using threaded I/O for fast results Deletes safely with dry-run mode, .shatterignore protection, and confirmation prompts Works in CI/CD with --yes for non-interactive cleanup Comparison (How it differs from alternatives) There are existing tools in this spa