Skip to content

Instantly share code, notes, and snippets.

View leosco's full-sized avatar
🌆
Working

Leo Scordilis leosco

🌆
Working
  • Miami, FL
  • 00:48 (UTC -05:00)
View GitHub Profile
@DarrenN
DarrenN / get-npm-package-version
Last active January 9, 2025 19:36 — 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 January 3, 2025 15:11
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest