asian-regexps
Chinese, Japanese, Korean convenient RegExp npm package.
Installation
npm i asian-regexps
Usage
CommonJS
const { isKorean } = require('asian-regexps')
isKorean('한글')
ES6/ES2015 Modules AND TypeScript
import { isKorean } from 'asian-regexps'
isKorean('한글')
Browser
<script type="module">
import { isKorean } from '/node_modules/asian-regexps/asian-regexps-esm.js'
isKorean('한글')
</script>
API
functions
isChinese(string)
isFullChinese(string)
isJapanese(string)
isFullJapanese(string)
isKorean(string)
isFullKorean(string)
regexps
chineseRegExp
japaneseRegExp
koreanRegExp