{"name":"cjk-regex","version":"1.0.2","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":{},"devDependencies":{"@types/jest":"21.1.2","jest":"21.2.1","prettier":"1.7.4","prettier-config-ikatyang":"1.1.1","standard-version":"4.2.0","ts-jest":"21.1.2","tslint":"5.7.0","tslint-config-ikatyang":"2.4.0","tslint-config-prettier":"1.5.0","tslint-plugin-prettier":"1.3.0","typescript":"2.5.3"},"engines":{"node":">= 4"},"files":["/lib/**/*"],"gitHead":"30b9abef5b4e2b83a5d5ce0d0f69b782d370699f","bugs":{"url":"https://github.com/ikatyang/cjk-regex/issues"},"_id":"cjk-regex@1.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"ikatyang","email":"ikatyang@gmail.com"},"dist":{"integrity":"sha512-NwSMtwULPLk8Ka9DEUcoFXhMRnV/bpyKDnoyDiVw/Qy5przhvHTvXLcsKaOmx13o8J4XEsPVT1baoCUj5zQs3w==","shasum":"86f5170ecfaef9049ec91f8068e15d63d8e10154","tarball":"http://registry-npm.ywwl.com/cjk-regex/download/cjk-regex-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3SLDLGeroq0ST40WE03pmZrtZljVI+CAO7yS2ScH/sAiEAkbB4H1EKFRSZQK+Yy4zHjT6J2mNVehSFiuC1Q1gQ/tE="}],"size":2854,"noattachment":false,"key":"/cjk-regex/-/cjk-regex-1.0.2.tgz"},"maintainers":[{"name":"ikatyang","email":"ikatyang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cjk-regex-1.0.2.tgz_1507984427124_0.7460610521957278"},"directories":{},"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":1507984427277,"_cnpm_publish_time":1507984427277,"dist-tags":{"latest":"3.5.0"}}