{"size": 178, "ext": "js", "max_stars_repo_path": "app/core/utils/loadImage.js", "max_stars_repo_name": "mlabate/blitzjs.com", "max_stars_repo_stars_event_min_datetime": "2020-02-22T10:04:48.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T02:09:48.000Z", "max_issues_repo_path": "app/core/utils/loadImage.js", "max_issues_repo_name": "mlabate/blitzjs.com", "max_issues_repo_issues_event_min_datetime": "2020-02-22T03:40:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T09:59:33.000Z", "max_forks_repo_path": "app/core/utils/loadImage.js", "max_forks_repo_name": "mlabate/blitzjs.com", "max_forks_repo_forks_event_min_datetime": "2020-02-25T04:52:06.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T02:09:00.000Z"}
{"max_stars_count": 171, "max_issues_count": 649, "max_forks_count": 363, "avg_line_length": 19.7777777778, "max_line_length": 43, "alphanum_fraction": 0.6179775281}
export function loadImage(src) {
  return new Promise((resolve, reject) => {
    let img = new Image()
    img.onload = resolve
    img.onerror = reject
    img.src = src
  })
}
