1.0.2 • Published 8 years ago

node-env-config-file-loader v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Build Status npm version

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');