{"id":28307121,"url":"https://github.com/arye-eidelman/coding_challenge_grader","last_synced_at":"2026-05-03T15:33:36.050Z","repository":{"id":62422551,"uuid":"461399709","full_name":"arye-eidelman/coding_challenge_grader","owner":"arye-eidelman","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-23T04:35:10.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T04:46:30.861Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arye-eidelman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-20T06:04:52.000Z","updated_at":"2022-02-20T07:09:06.000Z","dependencies_parsed_at":"2022-11-01T17:32:07.490Z","dependency_job_id":null,"html_url":"https://github.com/arye-eidelman/coding_challenge_grader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/arye-eidelman/coding_challenge_grader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arye-eidelman%2Fcoding_challenge_grader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arye-eidelman%2Fcoding_challenge_grader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arye-eidelman%2Fcoding_challenge_grader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arye-eidelman%2Fcoding_challenge_grader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arye-eidelman","download_url":"https://codeload.github.com/arye-eidelman/coding_challenge_grader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arye-eidelman%2Fcoding_challenge_grader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno"],"created_at":"2025-05-24T05:11:02.648Z","updated_at":"2026-05-03T15:33:36.043Z","avatar_url":"https://github.com/arye-eidelman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coding_challenge_grader\n\nA function for running TypeScript/JavaScript leet code chalenges.\n\nRuns on deno.\n\nThe grade function accepts your solution function, an array of test cases and an\noptional options object.\n\nThe test cases array should be in the format:\n\n```typescript\nArray\u003c{\n  name?: string;\n  input: any[],\n  output: any\n}\u003e\n```\n\nFor example if the chalenge is to get the square of the input number and you\nwrote the following:\n\n```typescript\nimport { grade } from \"https://deno.land/x/coding_challenge_grader@v0.2.0/mod.ts\";\nconst testCases: { input: [number]; output: number }[] = [\n  [{ input: [1], output: 1 }],\n  [{ input: [2], output: 4 }],\n  [{ input: [3], output: 9 }],\n  [{ input: [-3], output: 9, name: \"negetive inputs\" }],\n];\n\nfunction solution(n: number): number {\n  return n * Math.abs(n);\n}\ngrade(solution, testCases);\n```\n\nyou'de get the following output:\n\n![passed in 0 milliseconds\npassed in 0 milliseconds\npassed in 0 milliseconds\nfailed in 0 milliseconds\n{ expected: 9, result: -9 }\n3 of 4 passed](./example-result.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farye-eidelman%2Fcoding_challenge_grader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farye-eidelman%2Fcoding_challenge_grader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farye-eidelman%2Fcoding_challenge_grader/lists"}