JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 63830
  • Score
    100M100P100Q156805F
  • License MIT

regular expression for matching CJK texts

Package Exports

  • cjk-regex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cjk-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cjk-regex

npm build coverage

regular expression for matching CJK texts

Changelog

Install

# using npm
npm install --save cjk-regex

# using yarn
yarn add cjk-regex

Usage

const get_cjk_regex = require("cjk-regex");

"a".test(get_cjk_regex()); //=> false
"。".test(get_cjk_regex()); //=> true
"中".test(get_cjk_regex()); //=> true

"a".test(get_cjk_regex.characters()); //=> false
"。".test(get_cjk_regex.characters()); //=> false
"中".test(get_cjk_regex.characters()); //=> true

"a".test(get_cjk_regex.punctuations()); //=> false
"。".test(get_cjk_regex.punctuations()); //=> true
"中".test(get_cjk_regex.punctuations()); //=> false

Development

# lint
yarn run lint

# build
yarn run build

# test
yarn run test

License

MIT © Ika