lib/helpers.js
function options (userOpts) {
  if (appLoaded && typeof userOpts === 'undefined') {
    return appOptions
  }
  userOpts = typeof userOpts === 'object' ? userOpts : {}
  appOptions = Object.assign({}, defaults, userOpts)
  appOptions.paths = Object.assign({}, defaults.paths, userOpts.paths)
  appLoaded = true

  return appOptions
}
function options (userOpts) {
  if (appLoaded && typeof userOpts === 'undefined') {
    return appOptions
  }
  userOpts = typeof userOpts === 'object' ? userOpts : {}
  appOptions = Object.assign({}, defaults, userOpts)
  appOptions.paths = Object.assign({}, defaults.paths, userOpts.paths)
  appLoaded = true

  return appOptions
}
function options ( userOpts ) { if ( appLoaded && typeof userOpts === 'undefined' ) { return appOptions } userOpts = typeof userOpts === 'object' ? userOpts : { } appOptions = Object . assign ( { } , defaults , userOpts ) appOptions . paths = Object . assign ( { } , defaults . paths , userOpts . paths ) appLoaded = true return appOptions }
Merge user options with defaults
@param {object} userOpts
@return {object}
Merge user options with defaults