{"name":"cjk-regex","version":"3.4.2","keywords":["cjk","regular-expression"],"author":{"url":"https://github.com/ikatyang","name":"Ika","email":"ikatyang@gmail.com"},"license":"MIT","_id":"cjk-regex@3.4.2","maintainers":[{"name":"fisker","email":"lionkay@gmail.com"},{"name":"ikatyang","email":"ikatyang@gmail.com"}],"homepage":"https://github.com/ikatyang-collab/cjk-regex#readme","bugs":{"url":"https://github.com/ikatyang-collab/cjk-regex/issues"},"dist":{"shasum":"705405764758e60b78c7541b2f8cde04f673fc33","tarball":"http://registry-npm.ywwl.com/cjk-regex/download/cjk-regex-3.4.2.tgz","fileCount":6,"integrity":"sha512-9/iBDm050WxGbKSecTzusplm8NQYmR6EnFV68jEjFPCQk1UWQ78OkGEXx/YOcWKvM92Rz9zqFzsfKeXYY4DZLw==","signatures":[{"sig":"MEYCIQDuNlPu6AxvlqW032aV/mOouXLYSqJsaSXIrPXkpCxG/gIhAJubKuUPFvPqHo1utTOaLKp7BLRHEB7QEJSfCh7+/sOS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIHYHmvBA83yFFvqv9Ww2IKzgbjSpXPihxo1H9lIPsS80AiAQNKs1vTJkxC0+7+G6w1rZkTTaAPiOp3cQ7ovOb9yCfQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/cjk-regex@3.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7726,"size":3067,"noattachment":false,"key":"/cjk-regex/-/cjk-regex-3.4.2.tgz"},"type":"module","engines":{"node":">=16"},"exports":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"gitHead":"44fe882e7e10cb616ebf62a187b8f2cbff5c2e15","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a5c62978-f61e-49dd-b333-3377a4af3b38"}},"repository":{"url":"git+https://github.com/ikatyang-collab/cjk-regex.git","type":"git"},"_npmVersion":"12.0.2","description":"regular expression for matching CJK text","directories":{},"_nodeVersion":"24.20.0","dependencies":{"regexp-util":"^2.0.3","unicode-regex":"^4.2.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cjk-regex_3.4.2_1789182357667_0.43224436187580273","host":"s3://npm-registry-packages-npm-production"},"readme":"# cjk-regex\n\n[![npm](https://img.shields.io/npm/v/cjk-regex.svg)](https://www.npmjs.com/package/cjk-regex)\n[![build](https://img.shields.io/github/actions/workflow/status/ikatyang/cjk-regex/test.yml)](https://github.com/ikatyang/cjk-regex/actions?query=branch%3Amain)\n\nregular expression for matching CJK text\n\n[Changelog](https://github.com/ikatyang/cjk-regex/blob/main/CHANGELOG.md)\n\n## Install\n\n```sh\nnpm install cjk-regex\n```\n\n## Usage\n\n```js\nimport * as cjk from 'cjk-regex'\n\nconst cjkCharset = cjk.all()\ncjkCharset.toRegExp().test('a') //=> false\ncjkCharset.toRegExp().test('。') //=> true\ncjkCharset.toRegExp().test('中') //=> true\n\nconst cjkLetterCharset = cjk.letters()\ncjkLetterCharset.toRegExp().test('a') //=> false\ncjkLetterCharset.toRegExp().test('。') //=> false\ncjkLetterCharset.toRegExp().test('中') //=> true\n\nconst cjkPunctuationCharset = cjk.punctuations()\ncjkPunctuationCharset.toRegExp().test('a') //=> false\ncjkPunctuationCharset.toRegExp().test('。') //=> true\ncjkPunctuationCharset.toRegExp().test('中') //=> false\n```\n\nReturns a [Charset](https://github.com/ikatyang/regexp-util#charset).\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","publish_time":1789182357765,"_cnpm_publish_time":1789182357765,"dist-tags":{"latest":"3.5.0"}}