{"size": 158, "ext": "js", "max_stars_repo_path": "middleware/getPagination.js", "max_stars_repo_name": "b1506704/ng-health-care-demo", "max_stars_repo_stars_event_min_datetime": "2021-07-31T14:13:29.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-04T07:54:02.000Z", "max_issues_repo_path": "middleware/getPagination.js", "max_issues_repo_name": "b1506704/ng-health-care-demo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "middleware/getPagination.js", "max_forks_repo_name": "b1506704/ng-health-care-demo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.3333333333, "max_line_length": 51, "alphanum_fraction": 0.6518987342}
export default function getPagination(page, size) {
  const limit = size ? +size : 5;
  const offset = page ? page * limit : 0;
  return { limit, offset };
}
