.package.json script package version code example Example: package.json version $(node -pe 'require(\"./package.json\")[\"version\"]')