Skip to content

Instantly share code, notes, and snippets.

@thepoppingone
Last active March 11, 2019 10:39
Show Gist options
  • Save thepoppingone/879e6ed096adca2f8a25e3fbc7904701 to your computer and use it in GitHub Desktop.
Save thepoppingone/879e6ed096adca2f8a25e3fbc7904701 to your computer and use it in GitHub Desktop.
Check for npm and pip modules outdated
#!/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