normalize_cjk
[!WARNING]
this repository has no relationship with the original repository.
Unofficial deno port of daangn/normalize-cjk. For node compatible NPM package, please visit original repository instead.
Usage
Either import all functions from https://deno.land/x/normalize_cjk@0.1.0/mod.ts
or import specific functions from:
chinese.ts
japanese.ts
korean.ts
import { assertEquals } from "https://deno.land/std@0.1.0/assert/assert_equals.ts"
import { normalizeCJK } from "https://deno.land/x/normalize_cjk@0.1.0/mod.ts"
const provided = "⾣〸ム㦳䎛内呑尙岀敻爲耈蔿説飮,ニッポン,㈜목도리"
const expected = "酉十厶㘽㖈內吞尚出夐為耇蒍說飲,ニッポン,(주)목도리"
assertEquals(normalizeCJK(provided), expected)
import { assertEquals } from "https://deno.land/std@0.1.0/assert/assert_equals.ts"
import { normalizeHangul } from "https://deno.land/x/normalize_cjk@0.1.0/korean.ts"
assertEquals(normalizeHangul("㈜목도리"), "(주)목도리")
License
- Original repository was MIT licensed and can be found in LICENSE.
- This port's license is AGPL-3.0-only.