From 02d32a9e516077f3bfc065ef06d842e8ca77a499 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 11 Jun 2017 20:23:12 -0600 Subject: [PATCH] Add config getter --- core/config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/config.js b/core/config.js index 25e409f4..ebd9bca5 100644 --- a/core/config.js +++ b/core/config.js @@ -100,6 +100,11 @@ function init(configPath, options, cb) { ], function complete(err, mergedConfig) { exports.config = mergedConfig; + + exports.config.get = function(path) { + return _.get(exports.config, path); + }; + return cb(err); } );