From time to time, I usually run a script like:
find . -type d \ -ctime +90 \ -name node_modules \ -depth 2 \ -exec du \ -hs {} \;
It displays untouched node_modules from the last 90 days. After reviewing, I activate the flag to delete them.
node_modules
That's a good one!
If I remember correctly npkill was also planning to add a min date feature to filter old node modules, but isn't implemented yet.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
From time to time, I usually run a script like:
It displays untouched
node_modules
from the last 90 days. After reviewing, I activate the flag to delete them.That's a good one!
If I remember correctly npkill was also planning to add a min date feature to filter old node modules, but isn't implemented yet.