Using the npm configuration from inside the Node package
To access npm package configuration inside the Node package itself just include package.json
as a module:
var software = require('./package.json');
console.log(software.name + ' ' + software.version);