Module: @gukhanmun/wasm

WebAssembly implementation of the Gukhanmun hanja-to-hangul converter.

Provides the same {@link load} / {@link Gukhanmun} contract as @gukhanmun/napi but runs in any WebAssembly-capable environment — browsers, Deno 2.0+, Node 20+, and Bun 1.0+.

The WASM module is initialised lazily on the first load() call and cached for subsequent calls. Dictionary data (FST format) must be supplied explicitly via {@link GukhanmunOptions.dictionaries}.

Example

import { load } from "@gukhanmun/wasm";
import { stdictFst } from "@gukhanmun/stdict-fst";

const g = await load({ dictionaries: [await stdictFst()] });
console.log(g.convert("漢字를 한글로"));  // "한자를 한글로"

Classes

Functions

References

ContextWindow

Re-exports ContextWindow


DictionaryEntry

Re-exports DictionaryEntry


DictionarySource

Re-exports DictionarySource


Directives

Re-exports Directives


ErrorCode

Re-exports ErrorCode


FileDictionarySource

Re-exports FileDictionarySource


Format

Re-exports Format


Gukhanmun

Re-exports Gukhanmun


GukhanmunFactory

Re-exports GukhanmunFactory


GukhanmunOptions

Re-exports GukhanmunOptions


HtmlOptions

Re-exports HtmlOptions


NumeralStrategy

Re-exports NumeralStrategy


OriginalGloss

Re-exports OriginalGloss


Preset

Re-exports Preset


Recovery

Re-exports Recovery


RenderMode

Re-exports RenderMode


Segmentation

Re-exports Segmentation