Snippets bash
Find all node_modules and get size
find . -name "node_modules" -type d -prune -print | xargs du -chs
Delete all
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
Find all node_modules and get size
find . -name "node_modules" -type d -prune -print | xargs du -chs
Delete all
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;