npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mecab-ya-wrapper-ko

v1.2.3

Published

Node.js용 MeCab-KO 형태소 분석기 래퍼. npm install 한 번으로 MeCab 바이너리 자동 설치.

Readme

mecab-ya-wrapper-ko

Node.js 환경에서 한국어 MeCab 형태소 분석기를 모듈 내부에 사전까지 포함해 한 번에 설치하고 바로 사용할 수 있는 래퍼입니다.

주요 특징

  • 외부 다운로드 없이, mecab-ko-dic 사전을 모듈에 포함.
  • npm install mecab-ya-wrapper-ko 한 번으로 MeCab 바이너리와 사전이 모두 설치됨.
  • Linux/macOS x64(추후 확장 가능) 지원.

설치

npm install mecab-ya-wrapper-ko

설치 후, 모듈 내부에 libc/mecab/bin/mecab 실행 파일과 libc/mecab/dic/ko-dic 사전 폴더가 포함됩니다.

사용법

const mecab = require("mecab-ya-wrapper-ko");

if (process.env.NODE_ENV === "production") {
  mecab.setDefaultUserDic("/server/api/resource/mecab/codit.dic");
} else if (process.env.NODE_ENV === "release") {
  mecab.setDefaultUserDic("/server-release/api/resource/mecab/codit.dic");
} else {
  mecab.setDefaultUserDic("/server-feature/api/resource/mecab/codit.dic");
}

export const getNouns = async (text: string): Promise<string[]> => {
  return new Promise((resolve, reject) => {
    try {
      mecab.nouns(text, function (err: any, result: string[]) {
        resolve(result);
      });
    } catch (err) {
      reject(err);
    }
  });
};

사전 교체/확장

  • 기본 사전은 libc/mecab/dic/ko-dic (mecab-ko-dic) 입니다.
  • 사전 파일을 교체하거나 업데이트하려면, libc/mecab/dic/ko-dic 디렉터리 내의 파일을 수정/교체하세요.

사용자 사전 추가

  • setDefaultUserDic 함수에서 경로를 추가 (위 사용법 참고)

테스트

npm test

라이선스

MIT