{"size": 230, "ext": "js", "max_stars_repo_path": "lib/readConfig.js", "max_stars_repo_name": "Souler/apb", "max_stars_repo_stars_event_min_datetime": "2019-09-11T23:16:19.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-10T01:22:30.000Z", "max_issues_repo_path": "lib/readConfig.js", "max_issues_repo_name": "Souler/apb", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/readConfig.js", "max_forks_repo_name": "Souler/apb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.1666666667, "max_line_length": 67, "alphanum_fraction": 0.7130434783}
import fs from 'fs';
import yaml from 'js-yaml';

function readConfig(configFilepath) {
  var doc = yaml.safeLoad(fs.readFileSync(configFilepath, 'utf8'));
  return {
    commands: doc.commands,
  };
}

export default readConfig;
