Cleanup all node_modules folders

 
~ $
find . -not -path '*/\.*' -name "node_modules" -type d -prune -exec rm -rf '{}' +
nodejs javascrpt shell cleanup

Description

This command cleans up all the node_modules folders recursively skipping any dot directory.

Useful to cleanup project directories to save up some space in your disk.




Shodan® All rights reserved