asian-regexps
v5.1.0
Published
Japanese-Chinese-Korean regexps
Downloads
588
Maintainers
Readme
asian-regexps
Chinese, Japanese, Korean convenient RegExp npm package.
Installation
npm i asian-regexps
Usage
CommonJS
const { isFullKorean } = require('asian-regexps')
isFullKorean('한글') // trueES6/ES2015 Modules AND TypeScript
import { isFullKorean } from 'asian-regexps'
isFullKorean('한글') // trueBrowser
<script type="module">
import { isFullKorean } from '/node_modules/asian-regexps/asian-regexps-esm.js'
isFullKorean('한글') // true
</script>API
functions
hasChinese(string)isFullChinese(string)hasJapanese(string)isFullJapanese(string)hasKorean(string)isFullKorean(string)
regexps
chineseRegExpjapaneseRegExpkoreanRegExp
