korean-unpacker

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i korean-unpacker

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

6.29 kB

Total Files

5

Last publish

Collaborators

  • hwahyeon