Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daangn/normalize-cjk
Normalize CJK characters in text
https://github.com/daangn/normalize-cjk
chinese cjk hangul hiragana japanese korean unicode
Last synced: about 3 hours ago
JSON representation
Normalize CJK characters in text
- Host: GitHub
- URL: https://github.com/daangn/normalize-cjk
- Owner: daangn
- License: mit
- Created: 2021-07-13T15:09:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T14:07:30.000Z (11 months ago)
- Last Synced: 2024-10-13T15:50:29.607Z (27 days ago)
- Topics: chinese, cjk, hangul, hiragana, japanese, korean, unicode
- Language: TypeScript
- Homepage:
- Size: 85 KB
- Stars: 14
- Watchers: 21
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - normalize-cjk
README
# normalize-CJK
[![Package Version](https://img.shields.io/npm/v/normalize-cjk)](https://npm.im/normalize-cjk)
[![License](https://img.shields.io/npm/l/normalize-cjk)](#License)
[![NPM Bundle Size](https://img.shields.io/bundlephobia/minzip/normalize-cjk)](https://bundlephobia.com/package/normalize-cjk)Normalize CJK characters in text
## Usage
```js
import {
// Function to normalize CJK text in the given string
normalize,// Function to normalize Chinese only
normalizeChinese,// Function to normalize Half-width Kana only
normalizeJapanese,
normalizeKatakana,// Function to normalize Hangul only
normalizeKorean,
normalizeHangul,
} from 'normalize-cjk';
```## Are you looking for normalizer for accents/diacritics?
Consider [normalize-diacritics](https://github.com/motss/normalize-diacritics) or [lodash.deburr](https://lodash.com/docs/#deburr)