src/paths/multiResolver.js
function getConfigSetting(pkg, setting, ensureArray) {
  if (!hasConfigSetting(pkg, setting)) {
    return null;
  }

  const value = pkg.config[appName][setting];
  if (ensureArray && !Array.isArray(value)) {
    return [value];
  }

  return value;
}
function getConfigSetting(pkg, setting, ensureArray) {
  if (!hasConfigSetting(pkg, setting)) {
    return null;
  }

  const value = pkg.config[appName][setting];
  if (ensureArray && !Array.isArray(value)) {
    return [value];
  }

  return value;
}
function getConfigSetting ( pkg , setting , ensureArray ) { if ( ! hasConfigSetting ( pkg , setting ) ) { return null ; } const value = pkg . config [ appName ] [ setting ] ; if ( ensureArray && ! Array . isArray ( value ) ) { return [ value ] ; } return value ; }
Gets the value for the specified setting if the setting exists, otherwise null
@param {object} pkg pkg the contents of the package.json in object form.
@param {string} setting setting Name of the setting to look for
@param {bool} ensureArray flag denoting whether to ensure the setting is an array
Gets the value for the specified setting if the setting exists otherwise null