Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
delete node_modules in projects not used over a year
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