Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Created December 12, 2015 13:12
Show Gist options
  • Save jdforsythe/9498be2ea9165452bfd9 to your computer and use it in GitHub Desktop.
Save jdforsythe/9498be2ea9165452bfd9 to your computer and use it in GitHub Desktop.
Gets the version value from a package.json file
grep -Po '"'"version"'"\s*:\s*"\K([^"]*)' package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment