Skip to content

Instantly share code, notes, and snippets.

Ismael Santos Kafeltz kafeltz

Block or report user

Report or block kafeltz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kafeltz
kafeltz / get-npm-package-version
Created Jul 15, 2016 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
View get-npm-package-version
# 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
You can’t perform that action at this time.