One-click cleanup tool for development junk files.
- 🧹 Clean build artifacts, caches, and IDE junk
- 🛡️ Safe by default with dry-run preview mode
- 🌐 Cross-language support (Python, Node.js, and more)
- ⚡ Fast recursive scanning
- 🎯 Language-specific filtering options
pip install dev-cleanergit clone https://github.com/xiyanbaby/dev_cleaner.git
cd dev_cleaner
pip install -e .Preview what will be cleaned (dry-run mode):
dev-cleaner --dry-runClean all development junk files:
dev-cleanerClean only Python files:
dev-cleaner --pythonClean only Node.js files:
dev-cleaner --nodeCombine multiple languages:
dev-cleaner --python --node__pycache__directories*.pyccompiled files.venvvirtual environments.pytest_cachetest caches
node_modulesdependencies.cachedirectories.nextNext.js build files.nuxtNuxt.js build files
builddirectoriesdistdistribution filescmake-build-*CMake build filestargetMaven/Cargo target directories
.vscodeVS Code settings.ideaJetBrains IDE settings
.DS_StoremacOS system filesThumbs.dbWindows thumbnail cache*.loglog files
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
xiyanbaby
一键清理开发垃圾文件的工具。
- 🧹 清理构建产物、缓存和IDE垃圾文件
- 🛡️ 默认安全模式,提供预览功能
- 🌐 跨语言支持(Python、Node.js等)
- ⚡ 快速递归扫描
- 🎯 支持按语言过滤
pip install dev-cleanergit clone https://github.com/xiyanbaby/dev_cleaner.git
cd dev_cleaner
pip install -e .预览将要清理的内容(试运行模式):
dev-cleaner --dry-run清理所有开发垃圾文件:
dev-cleaner仅清理 Python 文件:
dev-cleaner --python仅清理 Node.js 文件:
dev-cleaner --node组合多种语言:
dev-cleaner --python --node__pycache__目录*.pyc编译文件.venv虚拟环境.pytest_cache测试缓存
node_modules依赖目录.cache缓存目录.nextNext.js 构建文件.nuxtNuxt.js 构建文件
build目录dist分发文件cmake-build-*CMake 构建文件targetMaven/Cargo 目标目录
.vscodeVS Code 设置.ideaJetBrains IDE 设置
.DS_StoremacOS 系统文件Thumbs.dbWindows 缩略图缓存*.log日志文件
欢迎贡献!请随时提交 Pull Request。
本项目采用 MIT 许可证 - 详情请参见 LICENSE 文件。
xiyanbaby