Created a Python CLI to clean node_modules and other build artifacts

I was so frustrated watching my Mac's disk space vanish into node_modules folders everywhere. So I decided to build something about it. I created a Python CLI called cleanup-nodemodule that recursively finds and removes build artifacts like node_modules, .next, and dist folders. The best part? It's completely safe by default with dry-run mode. This is also my first PyPI package. Thanks to AI, I figured out the entire publishing workflow so other devs can actually install and use it with pip. Honestly, publishing to PyPI felt intimidating, but breaking it down step by step made it doable. How to use it pip install cleanup-nodemodule # Safe dry-run first (shows what would be deleted) cleanup-nodemodule -p /path/to/project # Actually delete (when you're ready) cleanup-nodemodule -p /path/to/project --no-dry-run It's simple, safe, and saves a ton of disk space. I tested it on macOS and it works smoothly. If you try it and find bugs, please let me know or contribute. What other folders should I add? Thinking .turbo, .cache, .vercel, coverage. For more instruction click on comment link #python #javascript #nodejs #react #cli #opensource #devtools #productivity #firstproject #learning #ai #developer #coding

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories