{"name":"unicode-regex","version":"4.2.3","keywords":["regular-expression","unicode"],"author":{"url":"https://github.com/ikatyang","name":"Ika","email":"ikatyang@gmail.com"},"license":"MIT","_id":"unicode-regex@4.2.3","maintainers":[{"name":"fisker","email":"lionkay@gmail.com"},{"name":"ikatyang","email":"ikatyang@gmail.com"}],"homepage":"https://github.com/ikatyang-collab/unicode-regex#readme","bugs":{"url":"https://github.com/ikatyang-collab/unicode-regex/issues"},"dist":{"shasum":"e2784529a8b6aaeb61462674bb455a3502729858","tarball":"http://registry-npm.ywwl.com/unicode-regex/download/unicode-regex-4.2.3.tgz","fileCount":2053,"integrity":"sha512-yc3Bg51g7NAKaicz8SDozXwkS6L5fmIniFydHPX0rLAWcVBB7FSY6IdWJIiwOZN2SUX0H4GqtAr1WKRFGwLeSg==","signatures":[{"sig":"MEUCIGsiAGP/1k/2y7xbjRFbLOnB6DEFHFVB0oOaUmHoAmQMAiEAmP2/2ijSO4agEeSDrbZvgcJ53oIxmKcEIGwhN+eVl3E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQC/4mo1b5odWYcaiBmYsKRrcvQSgvsVl0tFtyP8exkdJgIhAOWnHUdHtiMs5KeZHpSG7zgytcLtJ4YdUsD9z+/JAjHn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/unicode-regex@4.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":886411,"size":210022,"noattachment":false,"key":"/unicode-regex/-/unicode-regex-4.2.3.tgz"},"type":"module","engines":{"node":">=16"},"exports":"./lib/index.js","gitHead":"2a2062af29183435c9db5bbddf7550153cdb65fd","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:51b1dc1d-e57b-4001-b64e-0a21d70d6b74"}},"repository":{"url":"git+https://github.com/ikatyang-collab/unicode-regex.git","type":"git"},"_npmVersion":"12.0.2","description":"regular expression for matching unicode category","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"regexp-util":"^2.0.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/unicode-regex_4.2.3_1789176649359_0.2099340780071779","host":"s3://npm-registry-packages-npm-production"},"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') //=> false\nregex.test('\"') //=> true\nregex.test('“') //=> 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\nyarn lint\n\n# build\nyarn build\n\n# test\nyarn test\n```\n\n## License\n\nMIT © [Ika](https://github.com/ikatyang)\n","publish_time":1789176649531,"_cnpm_publish_time":1789176649531,"dist-tags":{"latest":"4.3.0"}}