Example of npm environment variables loaded in a Node.js module.
Clone repository:
git clone https://gist.github.com/57a43183decf58b6213e22f166b040f1.git npm-env-vars
cd npm-env-vars
Install dependencies:
npm install
See npm environment variables:
npm start