Skip to content

Instantly share code, notes, and snippets.

View leosco's full-sized avatar
🌆
Working

Leo Scordilis leosco

🌆
Working
  • Miami, FL
  • 02:19 (UTC -04:00)
View GitHub Profile
@DarrenN
DarrenN / get-npm-package-version
Last active June 20, 2025 19:20 — 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
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active June 19, 2025 16:14
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest