For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/ko-Kore/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/ko-Kore/llms-full.txt, and this page is available as Markdown at https://canary.gukhanmun.org/ko-Kore/guide/javascript/install.md.
  • 韓國語 (國漢文)
  • 設置

    Gukhanmun은 같은 API를 共有하는 두 個의 JavaScript 具顯을 提供합니다:

    패키지環境備考
    @gukhanmun/wasm브라우저, Node.js 20+, Deno 2.0+, Bun 1.0+넓은 互換性을 爲해 勸奬
    @gukhanmun/napiNode.js 20+, Deno 2.0+, Bun 1.0+서버에서 더 빠름; 네이티브 코드

    大部分의 프로젝트에서는 @gukhanmun/wasm을 使用합니다. 處理量이 重要한 서버 作業負荷에는 @gukhanmun/napi로 바꿉니다.

    WebAssembly

    大部分의 環境에서 WebAssembly 具顯이 最善의 選擇입니다. 브라우저·Node.js·Deno·Bun에서 動作하며 네이티브 코드를 必要로 하지 않습니다. 選好하는 패키지 管理者로 設置합니다:

    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/wasm

    Node-API

    네이티브 애드온과 함께 Node.js·Deno·Bun을 쓰려면:

    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/napi

    《標準國語大辭典》

    JavaScript 패키지는 《標準國語大辭典》을 內藏하지 않습니다. 別途로 設置합니다:

    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/stdict-fst
    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/stdict-cdb

    두 패키지는 같은 辭典을 담고 있습니다; 두 形式은 찾기 特性에서 差異가 납니다. 大部分의 用例에서는 FST 패키지를 選好합니다.

    《우리말샘》

    《우리말샘》 패키지는 辭典 形式別로 나뉘고, 一般語, 北韓語, 方言, 옛말 分類別 로더(loader)를 提供합니다:

    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/opendict-fst
    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/opendict-cdb

    《外來語 表記 用例》

    國立國語院 《外來語 表記 用例》를 FST나 CDB 形式으로 設置합니다:

    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/loanwords-fst
    npm
    yarn
    pnpm
    bun
    deno
    npm add @gukhanmun/loanwords-cdb

    어느 프리셋도 이 패키지를 自動으로 불러오지 않습니다. 로더 使用法과 辭典 優先順位는 辭典을 參照하십시오.

    NAPI 플랫폼 바이너리

    @gukhanmun/napi는 다음을 爲한 미리 빌드된 바이너리를 包含합니다:

    • macOS: ARM64, x86_64
    • Windows: ARM64, x86_64
    • Linux (glibc): ARM64, x86_64

    Alpine Linux(musl)는 소스에서 빌드해야 합니다.