{"name":"cjk-regex","version":"3.2.0","keywords":["cjk","regular-expression"],"author":{"url":"https://github.com/ikatyang","name":"Ika","email":"ikatyang@gmail.com"},"license":"MIT","_id":"cjk-regex@3.2.0","maintainers":[{"name":"fisker","email":"lionkay@gmail.com"},{"name":"ikatyang","email":"ikatyang@gmail.com"}],"homepage":"https://github.com/ikatyang/cjk-regex#readme","bugs":{"url":"https://github.com/ikatyang/cjk-regex/issues"},"dist":{"shasum":"9b243a4de821c4e03ef5509c0e4f8571e7feb063","tarball":"http://registry-npm.ywwl.com/cjk-regex/download/cjk-regex-3.2.0.tgz","fileCount":6,"integrity":"sha512-3DaVnBKGP0+UFqlrItSTZEBrPr+465c+d94bAHYsloCktZGcOL2Wlb3/bxyTQ0CJtI2XuegND0VWx0KBBP4LYg==","signatures":[{"sig":"MEUCIAGvH1y2ciDdS4rGpQamjo4ZVUUYolTeiMqc97ACIapDAiEAkCpdZHNiG8MmD/TzVpc09gKIEN238bf5MxmtlpNzmJI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7425,"size":3118,"noattachment":false,"key":"/cjk-regex/-/cjk-regex-3.2.0.tgz"},"type":"module","engines":{"node":">=16"},"exports":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"gitHead":"7e41ab5d0a941668a7c270ec1e893007d5b1e3de","scripts":{"lint":"prettier --check .","test":"vitest","build":"tsc -p ./tsconfig.build.json","prepack":"pnpm run build","release":"standard-version"},"_npmUser":{"name":"fisker","email":"lionkay@gmail.com"},"repository":{"url":"git+https://github.com/ikatyang/cjk-regex.git","type":"git"},"_npmVersion":"9.1.2","description":"regular expression for matching CJK text","directories":{},"_nodeVersion":"22.14.0","dependencies":{"regexp-util":"^2.0.1","unicode-regex":"^4.1.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.6.1+sha512.40ee09af407fa9fbb5fbfb8e1cb40fbb74c0af0c3e10e9224d7b53c7658528615b2c92450e74cfad91e3a2dcafe3ce4050d80bda71d757756d2ce2b66213e9a3","devDependencies":{"vite":"6.2.1","vitest":"3.0.8","prettier":"3.5.3","typescript":"5.8.2","standard-version":"9.5.0","@vitest/coverage-v8":"3.0.8"},"_npmOperationalInternal":{"tmp":"tmp/cjk-regex_3.2.0_1741376423056_0.4839922231996998","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":1741376423242,"_cnpm_publish_time":1741376423242,"dist-tags":{"latest":"3.5.0"}}