{"size": 161, "ext": "js", "max_stars_repo_path": "config/functions/number.js", "max_stars_repo_name": "WizzCoding/wizzsnowbot", "max_stars_repo_stars_event_min_datetime": "2019-05-15T19:35:16.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-29T06:05:11.000Z", "max_issues_repo_path": "config/functions/number.js", "max_issues_repo_name": "WizzCoding/wizzsnowbot", "max_issues_repo_issues_event_min_datetime": "2019-05-15T19:29:56.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-15T19:32:40.000Z", "max_forks_repo_path": "config/functions/number.js", "max_forks_repo_name": "WizzCoding/wizzsnowbot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 40.25, "max_line_length": 69, "alphanum_fraction": 0.5776397516}
module.exports = function(number) {
  if(!number || typeof number !== "number") return 0;
  return number.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
}