1.0.1 • Published 4 years ago

hgjamo v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

한글 호환형 자모 분리 및 조합

문자열을 호환형 한글 자모로 분리하거나 분리된 호환형 한글 자모를 문자열로 결합하는 것을 도와줍니다.

설치

npm install hgjamo

API

decompose(<string>)

문자열을 입력받아 호환형 자모로 분리된 이중 배열로 반환

hgjamo.decompose('한글') // [['ㅎ', 'ㅏ', 'ㄴ'], ['ㄱ', 'ㅡ', 'ㄹ']]

composeSingle(<string[]>)

자모 배열을 문자열로 변환

hgjamo.composeSingle(['ㅎ', 'ㅏ', 'ㄴ']) // '한'

compose(<string>)

자모 이중 배열을 문자열로 반환

hgjamo.compose([['ㅎ', 'ㅏ', 'ㄴ'], ['ㄱ', 'ㅡ', 'ㄹ']]) // 한글
1.0.1

4 years ago

1.0.0

4 years ago