Please check README.md on github if possible. it changes frequently.
import { Assembler } from "https://deno.land/x/[email protected]/mod.ts"
const hello = Assembler.assemble(['ㅇ', 'ㅏ', 'ㄴ', 'ㄴ', 'ㅕ', 'ㅇ']);
console.log(hello); // log : 안녕
const dishello = Assembler.disassemble("안녕하세요");
Note : This is not a translation. This'll assemble after converting according to the QWERTY keyboard
import { Hangul } from "https://deno.land/x/[email protected]/mod.ts"
console.log(Hangul.engToKor("dkssud tprP!"));
// log : 안녕 세계!
console.log(Hangul.korToEng("안녕 세계!"));
// log : dkssud tprP!
import { HangulBuilder } from "https://deno.land/x/[email protected]/mod.ts"
const builder1 = new HangulBuilder();
builder1.setInitial('ㅇ');
builder1.setNeutral('ㅏ');
builder1.setFinal('ㄴ');
const builder2 = new HangulBuilder('ㄴ', 'ㅕ', 'ㅇ');
console.log([builder1.build(), builder2.build()].join(''));
// log : 안녕