diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index 1e32860..b346ee9 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -210,6 +210,12 @@ Provider.prototype.init = function (options) { // Retrieves the value for the specified key (if any). // Provider.prototype.get = function (key, callback) { + if (typeof key === 'function') { + // Allow a * key call to be made + callback = key; + key = null; + } + // // If there is no callback we can short-circuit into the default // logic for traversing stores.