Created
August 4, 2018 08:09
-
-
Save sagax/d580c11028aacd2605c1531bcb2a7fe3 to your computer and use it in GitHub Desktop.
Get last version to all dependencies and devDependencies in package.json
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
# jq - jq-1.5 | |
# awk - GNU Awk 4.2.1, API: 2.0 | |
jq .dependencies,.devDependencies package.json | awk '/^\s/{gsub(/("|:)/, "", $0); command="npm info " $1 " version"; command | getline version; close(command); print " \"" $1 "\": \"" version "\","}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment