Skip to content

Instantly share code, notes, and snippets.

@sebastianha
Last active August 29, 2015 14:09
Show Gist options
  • Save sebastianha/dbe31f9a7cef269e4ae2 to your computer and use it in GitHub Desktop.
Save sebastianha/dbe31f9a7cef269e4ae2 to your computer and use it in GitHub Desktop.
Show all bower packages of a project which can be updated in a table
# Show all bower packages of a project which can be updated
# Displays package name, current and latest version in a nice table
# Note: give bower some time to fetch the version information
bower list | grep latest | sed -e 's/[^#a-zA-Z0-9.+ ()-]//g' -e 's/^[[:space:]]*//g' | sort -u | sed -e 's/ (/#(/g' | tr -d '()' | sed -e 's/#latest is /#/g' | sed '1 i\Module Name#Current#Latest Version' | column -t -s'#'
# EXAMPLE:
#
# Module Name Current Latest Version
# jquery 1.11.0 2.1.1
# jquery-ui 1.10.4 1.11.2
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment