{"size": 322, "ext": "js", "max_stars_repo_path": "examples/ssr/hn2/src/util.js", "max_stars_repo_name": "caugner/vue-i18n", "max_stars_repo_stars_event_min_datetime": "2015-01-05T17:09:39.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T02:55:59.000Z", "max_issues_repo_path": "examples/ssr/hn2/src/util.js", "max_issues_repo_name": "wx408396293/vue-i18n", "max_issues_repo_issues_event_min_datetime": "2015-01-10T09:45:05.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-29T00:54:12.000Z", "max_forks_repo_path": "examples/ssr/hn2/src/util.js", "max_forks_repo_name": "wx408396293/vue-i18n", "max_forks_repo_forks_event_min_datetime": "2015-06-29T18:30:28.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T02:55:48.000Z"}
{"max_stars_count": 6944, "max_issues_count": 1222, "max_forks_count": 1129, "avg_line_length": 29.2727272727, "max_line_length": 54, "alphanum_fraction": 0.5683229814}
export function timeAgo (time) {
  const between = Date.now() / 1000 - Number(time)
  if (between < 3600) {
    return { value: ~~(between / 60), unit: 'minute' }
  } else if (between < 86400) {
    return { value: ~~(between / 3600), unit: 'hour' }
  } else {
    return { value: ~~(between / 86400), unit: 'day' }
  }
}
