Function: opendictFstBytes()

opendictFstBytes(url): Promise<Uint8Array<ArrayBufferLike>>

Loads an Open Korean Dictionary FST binary as raw bytes.

A file: URL is read from disk with node:fs/promises when running in Node.js, Deno, or Bun; in other runtimes (e.g. browsers) and for all other schemes the bytes are retrieved with fetch.

Parameters

url

URL

Location of the FST binary to read.

Returns

Promise<Uint8Array<ArrayBufferLike>>

The FST binary as a Uint8Array.