Package Exports
- @trillum/devcleaner
- @trillum/devcleaner/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@trillum/devcleaner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
devcleaner
A terminal tool that cleans up space when you need it.
What it does
devcleaner scans your home folder for temp/re-creatable files, shows how much space each one uses, and lets you choose what to delete. It runs right in your terminal with a simple menu you move through with your keyboard.
It works on Windows, macOS, and Linux.
Install
Install it globally so you can run it from anywhere:
# npm
npm install --global @trillum/devcleaner
# pnpm
pnpm add --global @trillum/devcleaner
# yarn
yarn global add @trillum/devcleanerThen run:
devcleanerRisk levels
Every item is marked with a risk level so you know what is safe to remove and what is risky:
- safe - regenerates on its own, like caches
- caution - rebuild to get it back, like build output or
node_modules - dangerous - needs a reinstall or re-download, like toolchains or virtualenvs
What it cleans
devcleaner looks for files from many tools:
- Node.js -
node_modules, Next.js, Turborepo, Vite, Nuxt, SvelteKit, Astro, Parcel, Expo, Docusaurus, Angular caches, coverage reports, and the npm, yarn, bun, and deno caches - Rust -
targetfolders, cargo registry, cargo git checkouts, sccache, rustup toolchains - Python -
__pycache__, pytest, mypy, ruff caches, tox/nox envs, virtualenvs, pip, pipenv, poetry, conda caches, pyenv versions - Docker - Docker Desktop VM data, cache, and logs
- Go - go-build cache, module cache
- Java - Maven repo, Gradle caches, Gradle wrapper dists, Ivy cache
- Swift - Xcode DerivedData, DeviceSupport, simulator caches, SwiftPM, CocoaPods
- Android - Android Studio cache
- Unity - project
Libraryimport cache, global Unity package/asset cache - Unreal Engine - project
Intermediatebuild folders,DerivedDataCache, shared global DDC - Godot -
.godot(Godot 4) and.import(Godot 3) import caches - Video editors - After Effects disk cache, shared Adobe media cache (Premiere Pro / After Effects)
- System - VS Code data/cache/logs, Temp folder, Trash, Homebrew cache, Chrome, Edge, and Firefox cache
- Misc -
.cache,dist,build,out, sass cache
The list it shows depends on your OS and installed development tools, so some items only appear on the right platform.
Notes
- It scans your home folder. Scanning a large drive or drive with many projects can take a moment.
- You can use the
-dflag to select a specific directory to search or use-ato search your home folder and any other drives
Contributing
Found a bug, have an idea or want to add more scan targets to clean? Open an issue or pull request.