How to get the version of a module from its package.json

node.js < 12 VERSION=$(node -p “require(‘some-module/package.json’).version”)