A CLI tool to scan and list all node_modules directories starting from the current working directory. It shows the full path, last modification date, and total size of each directory β ideal for identifying and cleaning up unused dependencies.
Clone the repository and link it locally:
npm install
sudo npm linkThis will make the clean-node command available globally in your terminal.
clean-nodeπ¦ [1] /Users/user/Projects/api/node_modules
π Last modified: 04/04/2025 12:32:10
π¦ [2] /Users/user/Projects/site/node_modules
π Last modified: 03/04/2025 09:10:47Node.js 18 or newer
This tool does not delete any folders β it only scans and reports.
Made because I'm tired of forgotten node_modules eating up disk space.
- Possible in future I'll add delete feature.