code: function getConfigSettings(packageJsonFile) {
    // Locate and read package.json
    const pkg = JSON.parse(fs.readFileSync(packageJsonFile));
  
    return {
      searchDir:
        getConfigSetting(pkg, 'searchDir', true) || getDefaultValue('searchDir'),
      outputFile:
        getConfigSetting(pkg, 'outputFile') || getDefaultValue('outputFile'),
      pattern: getConfigSetting(pkg, 'pattern') || getDefaultValue('pattern'),
    };
  }
docs: Parses the package.json file and returns a config object
  @param {string} packageJsonFile Path to the package.json file