Because your disk space is finite, but dependency trees apparently aren't.
This is a simple Electron app that finds node_modules folders hiding in your system, tells you how much space they're wasting, and lets you delete them. You know, so you can have a clean slate before running npm install and filling it strictly back up again 10 minutes later.
- Scan: Crawls your directories. It might take a while. Filesystems are big.
- Review: Sorts folders by size, so you can see which side project from 2019 is hoarding the most logic.
- Delete: Removes selected folders. Gone. Poof. Until you need them again.
- Open the app.
- Select a directory to scan.
- Wait.
- Select the folders you want to delete.
- Click the button.
If you really feel the need to build this yourself:
- Clone the repo.
- Run
npm install. Yes, you have to downloadnode_modulesto build the tool that deletesnode_modules. - Run
npm start.
To build a release:
npm run buildThis uses electron-builder, so it handles Mac, Windows, and Linux. Theoretically.
MIT. Do whatever you want with it.