code: 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;
  }
docs: 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