{"_id":"unicode-regex@4.3.0","bugs":{"url":"https://github.com/ikatyang-collab/unicode-regex/issues"},"dist":{"shasum":"e98c29ee4d917c0608b7ea230788418b04b61869","tarball":"http://registry-npm.ywwl.com/unicode-regex/download/unicode-regex-4.3.0.tgz","fileCount":2079,"integrity":"sha512-X1u5dXkMT60vYlJqAKks8Wyr9+KdJsfy0zxNXSjSN9GUbzT740+RBzX0PogRoqC+YZ2tTPzsa5iEAnYN+kB3IQ==","signatures":[{"sig":"MEYCIQCRPvlZSQaLUefdaYLf2cNpKLY16Z7IWxPJaQEyoRyW7gIhAKnKEAMrsSnT9ca9w2MLqhLnbvXcNB1MJncn2kCiFgDm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFNBaIT3jk/1Hc6o8+FbPnCjv5j/fame4zNrd8rae8mRAiEA3KUG1iMenitbvH479FJZsxN5cRymMNeN/TLwcXCvYFs="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/unicode-regex@4.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":899652,"size":213249,"noattachment":false,"key":"/unicode-regex/-/unicode-regex-4.3.0.tgz"},"name":"unicode-regex","type":"module","author":{"url":"https://github.com/ikatyang","name":"Ika","email":"ikatyang@gmail.com"},"engines":{"node":">=16"},"exports":"./lib/index.js","gitHead":"c25363224e368e520163096f73d8493fb562565c","license":"MIT","version":"4.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:51b1dc1d-e57b-4001-b64e-0a21d70d6b74"}},"homepage":"https://github.com/ikatyang-collab/unicode-regex#readme","keywords":["regular-expression","unicode"],"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":{},"maintainers":[{"name":"fisker","email":"lionkay@gmail.com"},{"name":"ikatyang","email":"ikatyang@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.20.0","dependencies":{"regexp-util":"^2.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unicode-regex_4.3.0_1789555204194_0.016127195133685657"},"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":1789555204353,"_cnpm_publish_time":1789555204353,"dist-tags":{"latest":"4.3.0"}}