Skip to content
Checks a dir for node.js projects that haven't been touched in a year, and trashes the node_modules.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Cleanup Old Node.js Projects

npm install && npm run start /some/project/path[optional]


Pass in a directory path of your projects (or it'll prompt you), and then it'll find which ones haven't been touched in a year or more and have a node_modules directory. It will then show you which ones and prompt you to confirm their removal. Using the trash package, it'll safely put the old node_modules into your trash, where you can empty or restore them.

You can’t perform that action at this time.