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

euckr

v1.0.2

Published

A lightweight utility library for working with EUC-KR encoded strings in both Node.js and browser environments. Includes functions to calculate EUC-KR byte length, check if strings are EUC-KR encodable, and more. Fully frontend-compatible—no native depend

Readme

🇰🇷 EUC-KR Encoding Utility

npm version

npm downloads

EUC-KR 문자 인코딩 및 디코딩을 위한 자바스크립트 라이브러리입니다.
Korean character encoding made easy using EUC-KR based on KS X 1001.


📦 주요 기능 | Features

  • ✅ EUC-KR에서 표현 가능한 문자 판별
    (Check if a character is supported in EUC-KR)

  • 🔡 문자열을 EUC-KR 바이트로 인코딩
    (Encode strings to EUC-KR byte sequences)

  • 🧾 바이트 배열을 문자열로 디코딩
    (Decode EUC-KR bytes to strings)

  • 📏 문자열의 EUC-KR 바이트 길이 계산
    (Get byte length in EUC-KR)

  • 🔍 KS X 1001, KS X 1003 기반 완전 지원
    (Full support for KS X 1001 table)


📦 설치 | Installation

npm install euckr

🛠️ 사용법 | Usage

import {
  isEuckr,
  encodeToEuckr,
  decodeFromEuckr,
  getEuckrByteLength,
} from "euckr";

isEuckr("가"); // true
encodeToEuckr("가"); // [0xB0, 0xA1]
decodeFromEuckr([0xb0, 0xa1]); // "가"
getEuckrByteLength("ABC한"); // 5 (A, B, C: 1 byte each + 한: 2 bytes)

🧠 작동 원리 | How It Works

EUC-KR은 가변 길이 문자 인코딩입니다.

  • ASCII (0x00–0x7F) → 1 byte
  • KS X 1001 (0xA1A1–0xFEFE) → 2 bytes
  • 지원되지 않는 문자는 오류 발생

This library uses a verified lookup table to convert between Unicode and EUC-KR byte values.


🧾 표준 및 참고 | Standards & References


📄 라이선스 | License

MIT License


👤 작성자 | CodemasterKimc

Made with ❤️ by codemasterkimc 한국어 문자 처리를 쉽게!