Created
September 7, 2020 09:05
-
-
Save kyktommy/9d467569623292af6e484a6bd2c0e8b0 to your computer and use it in GitHub Desktop.
bash get node package.json version
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
export APPVERSION=`node -p "require('./package.json').version"` | |
echo $APPVERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment