Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vdegenne/asian-regexps

Chinese, Japanese, Korean convenient RegExp ESM Node.js module
https://github.com/vdegenne/asian-regexps

Last synced: about 2 months ago
JSON representation

Chinese, Japanese, Korean convenient RegExp ESM Node.js module

Awesome Lists containing this project

README

        

# asian-regexps

Chinese, Japanese, Korean convenient RegExp npm package.

## Installation

```npm i asian-regexps```

## Usage

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

### ES6/ES2015 Modules AND TypeScript
```typescript
import { isFullKorean } from 'asian-regexps'
isFullKorean('한글') // true
```

### Browser
```html

import { isFullKorean } from '/node_modules/asian-regexps/asian-regexps-esm.js'
isFullKorean('한글') // true

```

## API

### functions

- `hasChinese(string)`
- `isFullChinese(string)`
- `hasJapanese(string)`
- `isFullJapanese(string)`
- `hasKorean(string)`
- `isFullKorean(string)`

### regexps

- `chineseRegExp`
- `japaneseRegExp`
- `koreanRegExp`