Skip to content

Instantly share code, notes, and snippets.

@nicholascloud
Created December 11, 2017 16:47
Show Gist options
  • Save nicholascloud/d8d433bdbdf3c7a5c998afd44c426b44 to your computer and use it in GitHub Desktop.
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
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