{"size": 363, "ext": "js", "max_stars_repo_path": "src/get-data-length.js", "max_stars_repo_name": "DanielJDufour/ascii-grid", "max_stars_repo_stars_event_min_datetime": "2021-01-01T20:50:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-15T10:58:12.000Z", "max_issues_repo_path": "src/get-data-length.js", "max_issues_repo_name": "DanielJDufour/ascii-grid", "max_issues_repo_issues_event_min_datetime": "2021-07-25T16:37:32.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-25T16:37:32.000Z", "max_forks_repo_path": "src/get-data-length.js", "max_forks_repo_name": "DanielJDufour/ascii-grid", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 51.8571428571, "max_line_length": 111, "alphanum_fraction": 0.6887052342}
module.exports = ({ data }) => {
  if (!data) throw new Error("[ascii-grid/get-data-length] can't get length of nothing!");
  const data_length = "length" in data ? data.length : "byteLength" in data ? data.byteLength : null;
  if (data_length === null) throw new Error("[ascii-grid/get-data-length] unable to calculate length of data");
  return data_length;
};
