- korean-unpacker는 한글 문자열을 자음과 모음으로 분리하는 (풀어쓰기 해주는) JavaScript 라이브러리입니다.
- korean-unpacker is a JavaScript library for decomposing Korean strings into consonants and vowels.
npm install korean-unpacker
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('왜?')); // 'ㅇㅗㅐ?'
- Parameters
string
(String): The Korean string to decompose.
- Returns
- (String): The decomposed string into consonants and vowels.
This project is provided under the MIT License.