korean-unpacker
v1.0.3
Published
한글 문자열을 자음과 모음으로 분리하는 NPM 패키지
Downloads
52
Maintainers
Readme
korean-unpacker
- korean-unpacker는 한글 문자열을 자음과 모음으로 분리하는 (풀어쓰기 해주는) JavaScript 라이브러리입니다.
- korean-unpacker is a JavaScript library for decomposing Korean strings into consonants and vowels.
Installation
npm install korean-unpacker
Usage
const hangul = require('korean-unpacker');
console.log(hangul.unpack('안녕')); // 'ㅇㅏㄴㄴㅕㅇ'
OR
import hangul from 'korean-unpacker'
console.log(hangul.unpack('안녕')); // 'ㅇㅏㄴㄴㅕㅇ'
쌍자음
console.log(hangul.unpack('까치')); // 'ㄱㄱㅏㅊㅣ'
겹받침
console.log(hangul.unpack('삵')); // 'ㅅㅏㄹㄱ'
겹모음
console.log(hangul.unpack('왜?')); // 'ㅇㅗㅐ?'
API
unpack(string)
- Parameters
string
(String): The Korean string to decompose.
- Returns
- (String): The decomposed string into consonants and vowels.
License
This project is provided under the MIT License.