npm get version of current project bash code example Example: npm get package.json version node -pe "require('./package.json')['version']"