For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/ko-KR/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/ko-KR/llms-full.txt, and this page is available as Markdown at https://canary.gukhanmun.org/ko-KR/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)는 소스에서 빌드해야 합니다.