Last active
March 11, 2019 10:39
-
-
Save thepoppingone/879e6ed096adca2f8a25e3fbc7904701 to your computer and use it in GitHub Desktop.
Check for npm and pip modules outdated
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
#!/bin/bash | |
# Author: Wang Poh Peng | |
# Showing pip or npm outdate and last updated time | |
GREEN='\033[0;32m' | |
CYAN='\033[0;36m' | |
NC='\033[0m' # No Color | |
echo "" | |
echo "--------------------------------------------------------" | |
echo "Checking for outdated modules in pip and npm in the global context" | |
echo "--------------------------------------------------------" | |
echo "${GREEN}Starting with pip modules...${NC}" | |
pip list --outdated --format=columns | |
echo "Done with pip." | |
echo "" | |
echo "${CYAN}Proceeding to npm packages...${NC}" | |
npm outdated -g | |
echo "Done with npm." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment