load-consul-config
v1.1.2
Published
load some config from consul with node-config module
Downloads
3
Maintainers
Readme
usage
const config = require('config');
const path = 'app/default';
const loadConsulConfig = require('load-consul-config');
loadConsulConfig({ config: config, path: path, warning: false});
console.log(config);
waring
- only support json format
- if current config has no consul config ingnored
- no path or config ignored
- get from consul server error or no data or the data is not a json format ignored
- other questions just have a look at the code. 😀