Skip to content

Instantly share code, notes, and snippets.

@rxw1
Created February 20, 2015 12:42
Show Gist options
  • Save rxw1/072a1bc1f5960619f3a1 to your computer and use it in GitHub Desktop.
Save rxw1/072a1bc1f5960619f3a1 to your computer and use it in GitHub Desktop.
Extract name and version from package.json
egrep '\b(version|name)\b' package.json | cut -d\ -f4- | awk 1 ORS=' ' | sed 's/[",]//g; s/[ ]/-/; s/[ ]//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment