node-config-env-value
A plug-in for config module to add environment variables to the config file.
Installation
Npm
npm install node-config-env-value
Yarn
yarn add node-config-env-value
Quick start
default.json
package.json
... "scripts": , ...
index.js
var config = ; var NODE_ENV = config; console/* Config { server: { hostname: 'localhost', port: 4000 }, number: 1, boolean: false string: 'test2' ALLUSERSPROFILE: 'C:\\ProgramData', APPDATA: 'C:\\Users\\User\\AppData\\Roaming', ... }*/