get package.json version nodejs code example
Example 1: node get package.json version
process.env.npm_package_version
Example 2: package.json version
$(node -pe 'require(\"./package.json\")[\"version\"]')
process.env.npm_package_version
$(node -pe 'require(\"./package.json\")[\"version\"]')