Created
December 11, 2017 16:47
-
-
Save nicholascloud/d8d433bdbdf3c7a5c998afd44c426b44 to your computer and use it in GitHub Desktop.
check all outdated global packages in all versions of node.js installed by nvm
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
nvmOutdated() { | |
CURRENT="$(nvm current)" | |
for v in `ls -1 ~/.nvm/versions/node/`; do | |
nvm use $v | |
npm -g outdated | |
done | |
nvm use $CURRENT | |
} | |
alias nvm-outdated="nvmOutdated" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment