{"size": 396, "ext": "js", "max_stars_repo_path": "src/test/data/getTestData.js", "max_stars_repo_name": "devopsdojoconsortium/TeamVSMs", "max_stars_repo_stars_event_min_datetime": "2021-11-02T17:29:03.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-02T17:29:03.000Z", "max_issues_repo_path": "src/test/data/getTestData.js", "max_issues_repo_name": "devopsdojoconsortium/TeamAssist", "max_issues_repo_issues_event_min_datetime": "2019-09-04T23:44:46.000Z", "max_issues_repo_issues_event_max_datetime": "2020-04-11T20:25:42.000Z", "max_forks_repo_path": "src/test/data/getTestData.js", "max_forks_repo_name": "devopsdojoconsortium/TeamVSMs", "max_forks_repo_forks_event_min_datetime": "2020-05-11T19:39:54.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-11T19:39:54.000Z"}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": 1, "avg_line_length": 30.4615384615, "max_line_length": 87, "alphanum_fraction": 0.7398989899}
import jsonfile from 'jsonfile';
import read from 'read-file';

function getMockJson (filePath) { 
  const urlPath = "mockData/";
  return jsonfile.readFileSync(urlPath + filePath)
}

function stringFromMockData (filePath) { // for tsv, etc that mocks bulk form data, etc
  return read.sync("mockData/" + filePath,  {encoding: 'utf8', normalize: true})
}

export {getMockJson, stringFromMockData}