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 🙏

© 2025 – Pkg Stats / Ryan Hefner

kortype

v0.1.0

Published

Convert Korean typo of Querty/Dubeolsik, and translate Hangul codepoint bewteen Windows/macOS

Downloads

7

Readme

node-kortype

eng2kor and Hangul codepoint translation with Typescript support.
한영타변환기, 윈도우/맥 한글 변환기

Installation

npm install kortype

The package requires Node.js >= 10.

Usage

Example

import { KeyboardConverter, HangulConverter } from "kortype";

const mistyped = `rmsrj djqtsms sodyddmf rptlgkwl aktlqtldh.`;
const corrected = KeyboardConverter.set(mistyped, "querty").convert("dubeolsik").get();
console.log(corrected); // '근거 없는 내용을 게시하지 마십시오.'

const mactyped = `ㄱㄴㄷ보고서_최종_최종.pdf`;
const normalized = HangulConverter.set(mactyped, "mac").convert("complete").get();
const keystrokes = HangulConverter.set(mactyped, "mac").convert("keystroke").get();
console.log(normalized); // 'ㄱㄴㄷ보고서_최종_최종.pdf'
console.log(keystrokes); // 'ㄱㄴㄷㅂㅗㄱㅗㅅㅓ_ㅊㅗㅣㅈㅗㅇ_ㅊㅗㅣㅈㅗㅇ.pdf'

Features

  • Convert mistyped string between Querty and Dubeolsik keyboard layout.
  • Convert Hangul codepoint between the standard string (U+AC00-D7AF) and macOS-style jamo string (U+1100-11FF).
  • Convert Hangul keystrokes to merged syllables.
  • Supports Typescript.

API

KeyboardConverter

KeyboardConverter.set(value: string, type: "querty" | "dubeolsik", { capsLock?: boolean })

Create KeyboardConverter instance with the initial state.
KeyboardConverter.set() is same with new KeyboardConverter().

  • capsLock - CapsLock status while typing. If true, the letter case will be inverted.

instance.convert(type: "querty" | "dubeolsik")

Convert string with the specified keyboard layout.

instance.get()

Get converted string value.
instance.get() is same with instance.value.

HangulConverter

HangulConverter.set(value: string, type: "complete" | "mac" | "keystroke")

Create HangulConverter instance with the initial state.
HangulConverter.set() is same with new KeyboardConverter().

instance.convert(type: "complete" | "mac" | "keystroke")

Convert string with specified codepoint type.

  • "complete" - Normal Hangul string consists of Hangul Syllables (U+AC00-D7AF) and Letters (U+3130-318F).
  • "mac" - macOS-style Hangul composite string consists of Hangul Jamo (U+1100-11FF) and Letters (U+3130-318F).
  • "keystroke" - Destructed Hangul Letters sequence only consists of Dubeolsik keys (U+3130-318F).

instance.get()

Get converted string value.
instance.get() is same with instance.value.

Contributing

Thank you for considering contributing to the project! ❤️
I'll accept your pull request if it:

  • has tests
  • looks reasonable
  • does not break backward compatibility
  • linted & formatted properly (use eslint and prettier)

If your change breaks backward compatibility, please clarify it in the pull request then we should discuss about it.

License

This repository is licensed under the MIT license. See LICENSE.