Skip to content

Instantly share code, notes, and snippets.

View alanbo's full-sized avatar
🏠
Working from home

Alan Bogusiewicz alanbo

🏠
Working from home
  • Vancouver, Canada
View GitHub Profile
@DarrenN
DarrenN / get-npm-package-version
Last active April 12, 2025 14:15 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION