Skip to content

Instantly share code, notes, and snippets.

@veggiemonk
Last active November 5, 2018 19:49
Show Gist options
  • Save veggiemonk/321a34a9164e7fe00944125dd8fe3034 to your computer and use it in GitHub Desktop.
Save veggiemonk/321a34a9164e7fe00944125dd8fe3034 to your computer and use it in GitHub Desktop.
Useful commands
# Commands that are useful once in a while but not always for everyday usage
# Remove all node_modules forlder recursively
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
# List globally installed npm package
npm list -g --depth=0
# Loop over files in the current dir
for f in *; do
echo "File -> $f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment