Module: @gukhanmun/napi
Node.js native addon (napi-rs) implementation of the Gukhanmun hanja-to-hangul converter.
Provides the same {@link load} / {@link Gukhanmun} contract as
@gukhanmun/wasm but uses a precompiled native addon for maximum
throughput. Node.js 20+ is required. The native addon binary
(gukhanmun_napi.node) must be present in the package directory; build it
locally with mise run napi-build.
The load() factory is asynchronous for API uniformity with the WASM
backend, but the native addon is synchronously ready—dictionary data is
the only async part.
Example
Classes
Interfaces
- CustomPunctuationProfile
- DelimiterStyle
- DictionaryEntry
- Directives
- FileDictionarySource
- Gukhanmun
- GukhanmunFactory
- GukhanmunOptions
- HtmlOptions
- LoadedDictionary
- MapDictionarySource
- ResolvedPunctuationProfile
- StopStyle
Type Aliases
- AnnotationGranularity
- ContextWindow
- DictionarySource
- ErrorCode
- Format
- GukhanmunLoadOptions
- HanjaVariantSet
- HomophoneDetection
- MediaType
- NumeralStrategy
- OriginalGloss
- Preset
- PunctuationPreset
- Recovery
- RenderMode
- Segmentation
- SourcePolicy
- SourceRole
- SpaceAfter