Last active
September 13, 2020 02:24
-
-
Save radiofrequency/557d2b50e9c9612bf7c7e40cedd05e52 to your computer and use it in GitHub Desktop.
delete node_modules in projects not used over a year
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "node_modules" -type d -prune -mtime +365 | xargs du -chs | |
#find . -name "node_modules" -type d -prune -mtime +365 -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment