asian-regexps
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

asian-regexps

Chinese, Japanese, Korean convenient RegExp npm package.

Installation

npm i asian-regexps

Usage

CommonJS

const { isFullKorean } = require('asian-regexps')
isFullKorean('한글') // true

ES6/ES2015 Modules AND TypeScript

import { isFullKorean } from 'asian-regexps'
isFullKorean('한글') // true

Browser

<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

  • chineseRegExp
  • japaneseRegExp
  • koreanRegExp

Package Sidebar

Install

npm i asian-regexps

Weekly Downloads

10

Version

5.0.0

License

none

Unpacked Size

7.73 kB

Total Files

4

Last publish

Collaborators

  • vdegenne