{"id":22108988,"url":"https://github.com/uzmoi/parsea","last_synced_at":"2025-09-07T02:42:12.899Z","repository":{"id":44921395,"uuid":"393911000","full_name":"uzmoi/parsea","owner":"uzmoi","description":"parser combinator library for parsing array-like","archived":false,"fork":false,"pushed_at":"2025-02-12T03:00:17.000Z","size":766,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T01:49:32.496Z","etag":null,"topics":["array-like","parser-combinator"],"latest_commit_sha":null,"homepage":"","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/uzmoi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-08T09:03:30.000Z","updated_at":"2024-10-12T10:16:13.000Z","dependencies_parsed_at":"2024-01-25T12:28:40.450Z","dependency_job_id":"ec6ab0ea-1488-41d1-aff6-0a6db9650fa6","html_url":"https://github.com/uzmoi/parsea","commit_stats":null,"previous_names":["uzmoi/parsea","rizzzse/parsea"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/uzmoi/parsea","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzmoi%2Fparsea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzmoi%2Fparsea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzmoi%2Fparsea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzmoi%2Fparsea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uzmoi","download_url":"https://codeload.github.com/uzmoi/parsea/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzmoi%2Fparsea/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267179141,"owners_count":24048288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["array-like","parser-combinator"],"created_at":"2024-12-01T09:27:43.654Z","updated_at":"2025-07-26T14:33:50.186Z","avatar_url":"https://github.com/uzmoi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parsea\n\n[![NPM Version][npm-badge]](https://www.npmjs.com/package/parsea)\n[![JSR Version][jsr-badge]](https://jsr.io/@uzmoi/parsea)\n[![License][license-badge]](https://opensource.org/license/MIT)\n[![npm bundle size][bundle-size-badge]](https://bundlephobia.com/package/parsea)\n[![Codecov][codecov-badge]](https://app.codecov.io/gh/uzmoi/parsea)\n\n[npm-badge]: https://img.shields.io/npm/v/parsea?style=flat-square\n[jsr-badge]: https://img.shields.io/jsr/v/@uzmoi/parsea?style=flat-square\n[license-badge]: https://img.shields.io/github/license/uzmoi/parsea?style=flat-square\n[bundle-size-badge]: https://img.shields.io/bundlephobia/min/parsea?style=flat-square\n[codecov-badge]: https://img.shields.io/codecov/c/gh/uzmoi/parsea?style=flat-square\n\nparsea is a parser combinator library for parsing ArrayLike with TypeScript.\n\n```ts\nimport * as P from \"parsea\";\n\nconst parser = P.seq([\n    P.regex(/-?\\d+(\\.\\d+)?/).map(Number.parseFloat),\n    P.regex(/[A-Z]+/i),\n]).map(([value, unit]) =\u003e ({ value, unit }));\n\nP.parseA(parser, \"273.15K\"); // =\u003e { value: 273.15, unit: \"K\" }\n```\n\nSee also [examples/ directory](https://github.com/uzmoi/parsea/tree/main/examples).\n\nInspired by\n\n- [loquat](https://github.com/susisu/loquat)\n- [parsimmon](https://github.com/jneen/parsimmon)\n- [parsec](https://github.com/haskell/parsec) (haskell)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzmoi%2Fparsea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuzmoi%2Fparsea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzmoi%2Fparsea/lists"}