node-env-config-file-loader
v1.0.2
Published
Library for loading configuration files that you can inject environment variables in to.
Downloads
26
Maintainers
Readme
node-env-config-file-loader
Library for loading configuration files that you can inject environment variables in to.
This library will replace #{MY_ENVIRONMENT_VARIABLE}
with your environment variable of the same name.
How do I use this?
The load
function
All you need to do is send a file path to the load
function and it will handle everything for you.
JSON and YAML files are the only file types currently supported
var configLoader = require('node-env-config-file-loader');
var config = configLoader.load('./config.yml');