Created
December 12, 2015 13:12
-
-
Save jdforsythe/9498be2ea9165452bfd9 to your computer and use it in GitHub Desktop.
Gets the version value from a package.json file
This file contains hidden or 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
grep -Po '"'"version"'"\s*:\s*"\K([^"]*)' package.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment