JSPM

@trillum/devcleaner

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41
  • Score
    100M100P100Q77433F
  • License MIT

CLI tool to find and clean developer caches, build artifacts, and temporary files (no disk space = no coding)

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

Version Downloads License: MIT

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/devcleaner

Then run:

devcleaner

Risk 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 - target folders, 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 Library import cache, global Unity package/asset cache
  • Unreal Engine - project Intermediate build 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 -d flag to select a specific directory to search or use -a to 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.