Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinTCoughlin/73a2cb00c0d0d81f64a3fadaac23cacd to your computer and use it in GitHub Desktop.
Save KevinTCoughlin/73a2cb00c0d0d81f64a3fadaac23cacd to your computer and use it in GitHub Desktop.
PowerShell Parse & Print version value from package.json
$version = (Get-Content package.json) -join "`n" | ConvertFrom-Json | Select -ExpandProperty "version"
Write-Host "Version: '$version']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment