Skip to main content

Crate gukhanmun_napi

Crate gukhanmun_napi 

Source
Expand description

Node.js (napi-rs v3) binding for the Gukhanmun hanja-to-hangul converter.

Exposes NapiGukhanmun (owning converter) to JavaScript via napi-rs. Streaming is supported through NapiGukhanmun::open_stream / NapiGukhanmun::stream_push / NapiGukhanmun::stream_finish, where the stream state lives in an External handle that is assembled into a platform TransformStream by the TypeScript wrapper layer.

Errors are encoded as JSON in the napi reason field so the TypeScript wrapper can reconstruct a GukhanmunError with code and chain.

Structsยง

NapiGukhanmun
Owning hanja-to-hangul converter exposed to Node.js via napi-rs.
RawDictInput
Raw dictionary record passed from JavaScript: { format: "fst"|"cdb", bytes: Uint8Array }.
StreamState
Internal stream state held in an External handle.