
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gitcleaner-cli
Advanced tools
A powerful command-line tool to find and clean junk files and folders from your development projects. Keep your repositories clean and save disk space!
.gitcleaner.jsonInstall globally via npm:
npm install -g gitcleaner
Or run directly with npx:
npx gitcleaner scan
gitcleaner scan
This will show you all the junk files and folders found in your current directory and subdirectories.
gitcleaner clean
This will delete all detected junk files and folders.
gitcleaner clean --dry-run
This will show you what would be deleted without actually deleting anything.
GitCleaner looks for these common junk patterns by default:
node_modules - Node.js dependenciesdist - Build output directoriesbuild - Build output directories.DS_Store - macOS system files__pycache__ - Python cache directories*.log - Log filescoverage - Test coverage reports.nyc_output - NYC coverage tool output*.tmp - Temporary files*.temp - Temporary files.cache - Cache directoriestmp - Temporary directoriesCreate a .gitcleaner.json file in your project root to customize the patterns:
{
"patterns": [
"node_modules",
"dist",
"build",
".DS_Store",
"*.log",
"custom-folder",
"*.custom"
]
}
$ gitcleaner scan
🔍 Scanning for junk files...
Found junk:
- node_modules/ (550 MB)
- dist/ (12 MB)
- coverage/ (8.5 MB)
- .DS_Store (4 KB)
- app.log (2 KB)
Total: 570.5 MB
💡 Run 'gitcleaner clean' to delete these files
$ gitcleaner clean
🧹 Cleaning junk files...
- Deleted: node_modules/ (550 MB)
- Deleted: dist/ (12 MB)
- Deleted: coverage/ (8.5 MB)
- Deleted: .DS_Store (4 KB)
- Deleted: app.log (2 KB)
✅ Cleaned 5 items (570.5 MB freed)
$ gitcleaner clean --dry-run
🔍 Would delete junk files...
- Would delete: node_modules/ (550 MB)
- Would delete: dist/ (12 MB)
- Would delete: coverage/ (8.5 MB)
- Would delete: .DS_Store (4 KB)
- Would delete: app.log (2 KB)
📋 Would clean 5 items (570.5 MB would free)
| Command | Description |
|---|---|
gitcleaner scan | Scan for junk files and show results |
gitcleaner clean | Delete all detected junk files |
gitcleaner clean --dry-run | Preview what would be deleted |
gitcleaner --help | Show help information |
gitcleaner --version | Show version information |
.git directoriesnode_modules for performancenpm installnpm linkgitcleaner/
├── index.js # Main CLI entry point
├── package.json # Package configuration
├── README.md # Documentation
└── .gitcleaner.json # Optional config file
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)MIT License - see the LICENSE file for details.
FAQs
A command-line tool to clean junk files and folders from your projects
We found that gitcleaner-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.