Created
November 28, 2019 01:39
-
-
Save vreality64/ddbc4fbe88e56b5421da83f0ab3053c4 to your computer and use it in GitHub Desktop.
Clean up node_modules directory
This file contains 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
# Show all node_modules folder information in current working directory | |
alias show-all-node-modules="find . -name 'node_modules' -type d -prune -print | xargs du -chs" | |
# Remove all node_modules folder in current working directory | |
alias remove-all-node-modules="show-all-node-modules && find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running GIF
Terminal recording looks weired due to font issue. I recommend to see it external links 😄
show all node modules
remove all node modules