index.js
function verifyConfig (config) {
  config = config || {};
  config.db = config.db || {};
  config.db.location = config.db.location || __dirname + 'databases/'; // /cwd/databases/ default
  config.db.timeout = config.db.timeout || 1000 * 60 * 5; // 5 minute default
  config.db.fileTimeout = config.db.fileTimeout || -1; // No limit default

  return config;
}
function verifyConfig (config) {
  config = config || {};
  config.db = config.db || {};
  config.db.location = config.db.location || __dirname + 'databases/'; // /cwd/databases/ default
  config.db.timeout = config.db.timeout || 1000 * 60 * 5; // 5 minute default
  config.db.fileTimeout = config.db.fileTimeout || -1; // No limit default

  return config;
}
function verifyConfig ( config ) { config = config || { } ; config . db = config . db || { } ; config . db . location = config . db . location || __dirname + 'databases/' ; // /cwd/databases/ default config . db . timeout = config . db . timeout || 1000 * 60 * 5 ; // 5 minute default config . db . fileTimeout = config . db . fileTimeout || - 1 ; // No limit default return config ; }
Verifies the needed config options are available

@param  {object} config Configuration object
@return {object} Returns the properly adjusted config object
Verifies the needed config options are available