UNPKG

qwerty-dubeolsik

Version:

⌨ This library allows you to easily convert Korean keys to English or English keys to Korean on a QWERTY keyboard.

45 lines (28 loc) 1.05 kB
# QWERTY Dubeolsik ![NPM License](https://img.shields.io/npm/l/qwerty-dubeolsik) ![NPM Downloads](https://img.shields.io/npm/dw/qwerty-dubeolsik) ⌨ This library allows you to easily convert Korean keys to English or English keys to Korean on a QWERTY keyboard. ## Installation The easiest way to install `qwerty-dubeolsik` is with [npm](https://www.npmjs.com/package/qwerty-dubeolsik). ```bash npm install qwerty-dubeolsik ``` Alternately, download the source. ```bash git clone https://github.com/stegano/qwerty-dubeolsik.git ``` ## Features Convert a Korean key to its English equivalent using a QWERTY keyboard #### Convert English to Korean ```ts convertEngToKor("gksrmf"); // → output: "한글" convertEngToKor("English"); // → output: "뚜히ㅑ노" ``` #### Convert Korean to English ```ts convertKorToEng("한글"); // → output: "gksrmf" convertKorToEng("뚜히ㅑ노"); // → output: "English" ``` #### Demonstration - You can try this library right now ⚡️ - https://stackblitz.com/edit/vitejs-vite-cn4uuhcx