{"id":22514665,"url":"https://github.com/cityssm/node-docket-parser","last_synced_at":"2026-01-21T01:01:57.484Z","repository":{"id":218559381,"uuid":"745076288","full_name":"cityssm/node-docket-parser","owner":"cityssm","description":"Parses Ontario Provincial Offences docket print data into JavaScript objects.","archived":false,"fork":false,"pushed_at":"2024-06-21T18:14:26.000Z","size":161,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T03:25:02.983Z","etag":null,"topics":["court","docket","dockets","government","ontario","poa","provincial-offences"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cityssm/docket-parser","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cityssm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-18T15:45:12.000Z","updated_at":"2024-06-22T20:41:13.000Z","dependencies_parsed_at":"2024-01-22T20:11:51.724Z","dependency_job_id":"30e1f82c-a41a-4128-a2aa-c7ef08d4e25c","html_url":"https://github.com/cityssm/node-docket-parser","commit_stats":null,"previous_names":["cityssm/node-docket-parser"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cityssm/node-docket-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-docket-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-docket-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-docket-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-docket-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityssm","download_url":"https://codeload.github.com/cityssm/node-docket-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-docket-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28620572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["court","docket","dockets","government","ontario","poa","provincial-offences"],"created_at":"2024-12-07T03:20:09.850Z","updated_at":"2026-01-21T01:01:57.407Z","avatar_url":"https://github.com/cityssm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-docket-parser\n\n[![npm (scoped)](https://img.shields.io/npm/v/%40cityssm/docket-parser)](https://www.npmjs.com/package/@cityssm/docket-parser)\n[![DeepSource](https://app.deepsource.com/gh/cityssm/node-docket-parser.svg/?label=active+issues\u0026show_trend=true\u0026token=muETDEKU2ZUoWkSe81VYZ-B5)](https://app.deepsource.com/gh/cityssm/node-docket-parser/)\n[![Maintainability](https://api.codeclimate.com/v1/badges/80854a0809d920b041fa/maintainability)](https://codeclimate.com/github/cityssm/node-docket-parser/maintainability)\n[![codecov](https://codecov.io/gh/cityssm/node-docket-parser/graph/badge.svg?token=TK0MPXJYP5)](https://codecov.io/gh/cityssm/node-docket-parser)\n\nParses Ontario Provincial Offences docket print data into JavaScript objects.\n\n## Installation\n\n```sh\nnpm install @cityssm/docket-parser\n```\n\n## Usage\n\n```javascript\nimport { parseDockets } from '@cityssm/docket-parser'\n\nconst docketFileText = fs.readFileSync('test/dockets/whovilleDocket.txt').toString()\n\nconst docket = parseDockets(docketFileText)\n\nconsole.log(docket)\n\n/*\n{\n  \"docketDescription\": \"POA - ALL\",\n  \"pageNumber\": 1,\n  \"court\": \"1234\",\n  \"room\": \"POA\",\n  \"prosecutor\": \"MAYWHO, A\",\n  \"courtDate\": \"2024/01/10\",\n  \"courtTime\": \"09:30\",\n  \"justiceOfThePeace\": \"WHOVIER, M\",\n  \"clerk\": \"WHO, C\",\n  \"docketItems\": [\n    {\n      \"lineNumber\": 1,\n      \"informationNumber\": \"999 XX XXX     -00\",\n      \"defendantBirthDate\": \"1970/01/01\",\n      \"counts\": 1,\n      \"appTypeNumber\": \"FA 0\",\n      \"appTypeDescription\": \"First Appearance\",\n      \"compBadgeNumber\": \"XXXXX 0000\",\n      \"offenceDate\": \"2023/12/24\",\n      \"defendantName\": \"GRINCH, THE\",\n      \"offenceDescription\": \"STEALING CHRISTMAS\",\n      \"action\": \"WD\",\n      \"actionDescription\": \"Withdrawn\",\n      \"crEl\": \"\",\n      \"plea\": \"\",\n      \"find\": \"\",\n      \"comment\": \"WITHDRAWN\"\n    }\n  ]\n}\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-docket-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityssm%2Fnode-docket-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-docket-parser/lists"}