Add config getter

This commit is contained in:
Bryan Ashby 2017-06-11 20:23:12 -06:00
parent 2055c76f98
commit 02d32a9e51
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ function init(configPath, options, cb) {
], ],
function complete(err, mergedConfig) { function complete(err, mergedConfig) {
exports.config = mergedConfig; exports.config = mergedConfig;
exports.config.get = function(path) {
return _.get(exports.config, path);
};
return cb(err); return cb(err);
} }
); );