{"name":"cjk-regex","version":"2.0.0","description":"regular expression for matching CJK text","keywords":["cjk","regular-expression"],"main":"lib/index.js","types":"lib/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ikatyang/cjk-regex.git"},"homepage":"https://github.com/ikatyang/cjk-regex#readme","author":{"name":"Ika","email":"ikatyang@gmail.com","url":"https://github.com/ikatyang"},"license":"MIT","scripts":{"prepublish":"yarn run build","lint":"tslint -p ./tsconfig.json --type-check","test":"jest","prebuild":"rm -rf ./lib","build":"tsc -p ./tsconfig.build.json","release":"standard-version"},"dependencies":{"regexp-util":"^1.2.1","unicode-regex":"^2.0.0"},"devDependencies":{"@types/jest":"21.1.10","jest":"21.2.1","prettier":"1.11.1","prettier-config-ikatyang":"1.1.1","standard-version":"4.3.0","ts-jest":"21.2.4","tslint":"5.9.1","tslint-config-ikatyang":"2.5.1","tslint-config-prettier":"1.10.0","tslint-plugin-prettier":"1.3.0","typescript":"2.7.2"},"engines":{"node":">= 4"},"files":["/lib/**/*"],"gitHead":"41a324c4647ae9eb0de0ac8232e11b66d24c9223","bugs":{"url":"https://github.com/ikatyang/cjk-regex/issues"},"_id":"cjk-regex@2.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"ikatyang","email":"ikatyang@gmail.com"},"dist":{"integrity":"sha512-E4gFi2f3jC0zFVHpaAcupW+gv9OejZ2aV3DP/LlSO0dDcZJAXw7W0ivn+vN17edN/PhU4HCgs1bfx7lPK7FpdA==","shasum":"060aa111e61092768c438ccc9c643a53e8fe1ee5","tarball":"http://registry-npm.ywwl.com/cjk-regex/download/cjk-regex-2.0.0.tgz","fileCount":6,"unpackedSize":6122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbQi1uVx6oEzH3d9V3MN30LmHSWkKcwBEtHRAVfULBIAiAH32vlZWHRjxhk/+Q3zdKUazRmW/SPFUUlGmlSSmCR8A=="}],"size":2660,"noattachment":false,"key":"/cjk-regex/-/cjk-regex-2.0.0.tgz"},"maintainers":[{"name":"ikatyang","email":"ikatyang@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cjk-regex_2.0.0_1521735563108_0.7544558802147963"},"_hasShrinkwrap":false,"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%3Amaster)\n\nregular expression for matching CJK text\n\n[Changelog](https://github.com/ikatyang/cjk-regex/blob/master/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":1521735563227,"_cnpm_publish_time":1521735563227,"dist-tags":{"latest":"3.5.0"}}