{"id":15661550,"url":"https://github.com/ikatyang-collab/unicode-regex","last_synced_at":"2025-05-05T22:50:47.724Z","repository":{"id":26894763,"uuid":"110415150","full_name":"ikatyang-collab/unicode-regex","owner":"ikatyang-collab","description":"regular expression for matching unicode category","archived":false,"fork":false,"pushed_at":"2025-04-11T15:30:27.000Z","size":328,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T12:13:46.000Z","etag":null,"topics":["regular-expression","unicode"],"latest_commit_sha":null,"homepage":null,"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/ikatyang-collab.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":"2017-11-12T07:58:07.000Z","updated_at":"2025-03-31T23:33:39.000Z","dependencies_parsed_at":"2025-03-08T04:29:01.780Z","dependency_job_id":"e08936ed-de59-4139-a0e0-7858ed161f19","html_url":"https://github.com/ikatyang-collab/unicode-regex","commit_stats":{"total_commits":244,"total_committers":4,"mean_commits":61.0,"dds":"0.15573770491803274","last_synced_commit":"bf862700c2e3d69fd3915cd8c5e5ed95ec793756"},"previous_names":["ikatyang-collab/unicode-regex"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang-collab%2Funicode-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang-collab%2Funicode-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang-collab%2Funicode-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikatyang-collab%2Funicode-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikatyang-collab","download_url":"https://codeload.github.com/ikatyang-collab/unicode-regex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252590528,"owners_count":21772935,"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","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":["regular-expression","unicode"],"created_at":"2024-10-03T13:28:04.511Z","updated_at":"2025-05-05T22:50:47.717Z","avatar_url":"https://github.com/ikatyang-collab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unicode-regex\n\n[![npm](https://img.shields.io/npm/v/unicode-regex.svg)](https://www.npmjs.com/package/unicode-regex)\n[![build](https://img.shields.io/github/actions/workflow/status/ikatyang/unicode-regex/test.yml)](https://github.com/ikatyang/unicode-regex/actions?query=branch%3Amain)\n\nregular expression for matching unicode category.\n\n[Changelog](https://github.com/ikatyang/unicode-regex/blob/main/CHANGELOG.md)\n\n## Install\n\n```sh\nnpm install unicode-regex\n```\n\n## Usage\n\n```js\nimport unicode from 'unicode-regex'\n\nconst regex = unicode({ General_Category: ['Punctuation'] }).toRegExp()\nregex.test('a') //=\u003e false\nregex.test('\"') //=\u003e true\nregex.test('“') //=\u003e true\n```\n\n## API\n\n```ts\ndeclare function unicode(categories: {\n  [category: string]: SubCategory[]\n}): Charset\n```\n\nReturns a [Charset](https://github.com/ikatyang/regexp-util#charset) for further processing, e.g. union, intersect, etc.\n\n(Data from [`node-unicode-data`](https://github.com/mathiasbynens/node-unicode-data))\n\n## Development\n\n```sh\n# lint\npnpm run lint\n\n# build\npnpm run build\n\n# test\npnpm run test\n```\n\n## License\n\nMIT © [Ika](https://github.com/ikatyang)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikatyang-collab%2Funicode-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikatyang-collab%2Funicode-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikatyang-collab%2Funicode-regex/lists"}