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

@jacepkg/korean

v0.0.7

Published

module relating korean: syllable, count, clear

Downloads

11

Readme

@jacepkg/korean

한글과 관련된 모듈 모음

github: https://github.com/jacealan/jacepkg-ts
npm: https://www.npmjs.com/package/@jacepkg/korean

  • syllable(): 한글 음절 생성기

    syllable() is the module that make any korean syllable.

  • countLetter(): 글자수 세기

    countLetter() is the module that count letter of strings

  • countByte(): 바이트(Byte)크기 세기

    countByte() is the module that count byte of strings

  • countWord(): 단어수(띄어쓰기 기준) 세기

    countWord() is the module that count word of strings by space

  • clearSpace(): 문자열 정리: 탭(tab) -> 빈칸, 연속된 빈칸 -> 빈칸1개

    clearSpace() is the module that make tab, double space to ONE space

Installation

npm install @jacepkg/korean

Usage

Importing

import {
  syllable,
  countLetter,
  countByte,
  countWord,
  clearSpace,
} from "@jacepkg/korean"

syllable()
import korean from "@jacepkg/korean"

korean.syllable()

syllable(length: number = 1, withspace: boolean = false): number

  • length, withspace가 없으면 한 음절 생성
  • withspace가 없거나 false면 공백 없이 원하는 길이의 음절 생성
syllable() // 촒
syllable(10) // 줩뇅쳱펻뻘껨즰쌍쉁뺼죓
syllable(10, true // 둎찍굍 뺍푡롁 쯚럔

countLetter(text: string, withspace: boolean = true): number

countLetter("둎찍굍 뺍푡롁 쯚럔") // 10
countLetter("둎찍굍 뺍푡롁 쯚럔", false) // 8

countByte(text: string, withspace: boolean = true): number

countByte("둎찍굍 뺍푡롁 쯚럔") // 26
countByte("둎찍굍 뺍푡롁 쯚럔", false) // 24

countWord(text: string): number

countWord("둎찍굍 뺍푡롁 쯚럔") // 3
countWord("둎찍굍 뺍푡롁   쯚럔") // 3

clearSpace(text: string, allowEmptyLine: number = 0): string

clearSpace("가나다    라마 바         사아") // 가나다 라마 바 사아
clearSpace("가나다  라마 바 사아\n하하하하\n\n\n\n대한민국 최고")
// 가나다 라마 바 사아
// 하하하하
// 대한민국 최고
clearSpace("가나다  라마 바 사아\n하하하하\n\n\n\n대한민국 최고", 1)
// 가나다 라마 바 사아
// 하하하하
//
// 대한민국 최고
clearSpace("가나다  라마 바 사아\n하하하하\n\n\n\n대한민국 최고", 2)
// 가나다 라마 바 사아
// 하하하하
//
//
// 대한민국 최고

references

  • https://github.com/pengooseDev/goose
  • https://ko.wikipedia.org/wiki/%ED%95%9C%EA%B8%80_%EC%9D%8C%EC%A0%88
  • https://jsikim1.tistory.com/161
  • https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Math/random