1.0.3 • Published 7 years ago

cconf-consul v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

cconf-consul - A Configuration Loader with consul support

This package extends cconf with consul support.

Getting Started

$ npm install --save cconf-consul

Overview

Example

var cconf = require('cconf-consul');
var env = process.env.NODE_ENV ? process.env.NODE_ENV : 'dev';

cconf({
    consul: {
        host: "127.0.0.1",
        port: 8500,
        secure: false
    },
    root_key: 'config/' + env + '/'
}, function(err, result) {
    if (err) throw err;
    console.log(cconf.get('app_name'));
});
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago