{"size": 307, "ext": "js", "max_stars_repo_path": "api/src/util/detectors/factory.js", "max_stars_repo_name": "Alfiegerner/double-take", "max_stars_repo_stars_event_min_datetime": "2021-06-26T03:57:07.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-26T03:57:07.000Z", "max_issues_repo_path": "api/src/util/detectors/factory.js", "max_issues_repo_name": "retrospectsecurity/double-take", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "api/src/util/detectors/factory.js", "max_forks_repo_name": "retrospectsecurity/double-take", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.4666666667, "max_line_length": 62, "alphanum_fraction": 0.6221498371}
const logger = require('../logger.util');

const detectors = require('.');

/**
 * @param detector {string} Name of the detector to get
 */
module.exports.get = (detector) => {
  try {
    return detectors[detector];
  } catch (error) {
    logger.log(`${detector} factory error: ${error.message}`);
  }
};
