{"id":15697311,"url":"https://github.com/marihachi/carol-js","last_synced_at":"2026-03-07T11:01:59.168Z","repository":{"id":207591716,"uuid":"719625748","full_name":"marihachi/carol-js","owner":"marihachi","description":"A powerful, small tool for building regular expressions.","archived":false,"fork":false,"pushed_at":"2026-01-11T13:39:12.000Z","size":114,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T17:27:57.337Z","etag":null,"topics":["builder","esm","regex","regular-expression","tools","typescript","utility"],"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/marihachi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2023-11-16T15:06:05.000Z","updated_at":"2026-01-11T13:39:15.000Z","dependencies_parsed_at":"2023-11-19T11:27:05.504Z","dependency_job_id":"1232a478-0dfb-4a1c-bfbe-471ccdda6f48","html_url":"https://github.com/marihachi/carol-js","commit_stats":null,"previous_names":["marihachi/regtree","marihachi/carol-js"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/marihachi/carol-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marihachi%2Fcarol-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marihachi%2Fcarol-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marihachi%2Fcarol-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marihachi%2Fcarol-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marihachi","download_url":"https://codeload.github.com/marihachi/carol-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marihachi%2Fcarol-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30212103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"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":["builder","esm","regex","regular-expression","tools","typescript","utility"],"created_at":"2024-10-03T19:16:09.184Z","updated_at":"2026-03-07T11:01:59.159Z","avatar_url":"https://github.com/marihachi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# carol-js\nA powerful, small tool for building regular expressions.\n\n- It keeps its readability even with complex regular expressions.\n- It build a RegExp object by combining functions.\n- It provides a package of ES modules.\n\n```js\nimport C from \"carol-js\";\n\nconst hex = C.token(/[0-9a-f][0-9a-f]/);\n\nconst uuid = C.seq([\n  hex.many({ length: 4 }),\n  C.token(/-/),\n  hex.many({ length: 2 }),\n  C.token(/-/),\n  hex.many({ length: 2 }),\n  C.token(/-/),\n  hex.many({ length: 2 }),\n  C.token(/-/),\n  hex.many({ length: 6 }),\n]);\n\nconst regex = uuid.toRegex({ flags: \"i\", exact: true });\n\nassert.strictEqual(\n  regex.source,\n  \"^(?:[0-9a-f][0-9a-f]){4}-(?:[0-9a-f][0-9a-f]){2}-(?:[0-9a-f][0-9a-f]){2}-(?:[0-9a-f][0-9a-f]){2}-(?:[0-9a-f][0-9a-f]){6}$\"\n);\nassert.strictEqual(regex.flags, \"i\");\n```\n\n## Get Started\n1. Install package of carol-js to your project.\n   ```sh\n   npm i carol-js\n   ```\n\n2. Import the package to your TypeScript or JavaScript(ES modules) source files.\n   ```js\n   import C from 'carol-js';\n   ```\n\n3. Enjoy carol-js!\n\n## Documents\n- [API reference](https://github.com/marihachi/carol-js/blob/7ab6d7796a254764f4372e74220f7302d63b2669/doc/api.md)\n- [Usage](https://github.com/marihachi/carol-js/blob/7ab6d7796a254764f4372e74220f7302d63b2669/doc/usage.md)\n\n## Test\n```sh\ngit clone https://github.com/marihachi/carol-js.git\ncd carol-js\nnpm i\nnpm run build\nnpm test\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarihachi%2Fcarol-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarihachi%2Fcarol-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarihachi%2Fcarol-js/lists"}