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: 4 months 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 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T14:07:30.000Z (almost 2 years ago)
- Last Synced: 2025-05-19T21:50:52.466Z (5 months 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
[](https://npm.im/normalize-cjk)
[](#License)
[](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)