Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vdegenne/asian-regexps
- Owner: vdegenne
- Created: 2019-05-05T23:22:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T17:44:35.000Z (6 months ago)
- Last Synced: 2024-11-08T16:04:43.451Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```htmlimport { 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`