cachaito
1/14/2016 - 10:24 PM

Passing variable from package to node

//You can do things like
node server.js --name=$npm_package_name

//and it will replace $npm_package_name with that name value in the package.json
//If you have a nested object like the scripts object you can just use an underscore _ to reference it like $npm_package_scripts_test