Skip to content
738Public

About

πŸ‡°πŸ‡·μ˜νƒ€λ₯Ό ν•œκΈ€λ‘œ, ν•œνƒ€λ₯Ό μ˜μ–΄λ‘œ λ³€ν™˜ν•΄μ£ΌλŠ” μžλ°”μŠ€ν¬λ¦½νŠΈ μ˜€ν”ˆμ†ŒμŠ€ 라이브러리

Topics

Resources

Stars

231 stars

Watchers

5 watching

Forks

Repository files navigation

Inko.js logo
Inko.js

CI status on master GitHub stars Latest version published on npm Monthly npm downloads Monthly jsDelivr requests MIT license

Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)


Getting Started

  • μ˜νƒ€λ₯Ό ν•œκΈ€λ‘œ 쳀을 λ•Œ, ν˜Ήμ€ ν•œνƒ€λ₯Ό μ˜μ–΄λ‘œ λ³€ν™˜ν•΄μ£ΌλŠ” κΈ°λŠ₯을 κ°€μ§„ μžλ°”μŠ€ν¬λ¦½νŠΈ μ˜€ν”ˆμ†ŒμŠ€ λΌμ΄λΈŒλŸ¬λ¦¬μž…λ‹ˆλ‹€.
  • Inko Offical Website has been launched!
  • Inko ν•œμ˜νƒ€λ³€ν™˜κΈ° Chrome Extension has been launched! (2019.03.25)
  • inko.py has been launched! (2020.04.29) (Thanks to JackCme)
  • inko.kt has been launched! (2020.07.19) (Thanks to kimcore)

Release Notes

v1.1.2 β€” 2026-09-23

Available on npm and jsDelivr.

  • Fix package loading in Node.js, bundlers, and Vitest.
  • Correct standalone compound-consonant conversion and keep conversion methods working when used as callbacks.
  • Fix TypeScript declarations and strict-mode Web Worker support.
  • Remove runtime dependencies and refresh the build tools and CI checks.

See CHANGELOG.md for the full list of fixes. The default two-set keyboard mapping is unchanged.

Earlier releases
Version Release Date Changes Contributors
v1.0.3 2018.08.07 #7 μ˜νƒ€ -> ν•œκΈ€λ‘œ λ³€ν™˜ μ‹œμΌœμ£ΌλŠ” 둜직 μˆ˜μ •. μ•ŒνŒŒλ²³ μ†Œλ¬Έμž 26개, λŒ€λ¬Έμž 26개 총 52κ°œμ— λ§žμΆ°μ„œ ν•œκΈ€κ³Ό 맀핑함. 738
v1.0.4 2018.08.11 #4 Gulp둜 workflow μžλ™ν™” (inko.min.js 파일 생성), #8 Bower에 라이브러리 등둝 738
v1.0.5 2018.08.11 inko.jsμ—μ„œ package.json νŒŒμΌμ„ importν•˜λŠ” λΆ€λΆ„ 제거 738
v1.0.6 2018.08.25 #12 hlhlhl -> γ…šγ…—γ…£γ…—γ…£λ‘œ λ³€ν™˜λ˜λŠ” 버그 μˆ˜μ •, #14 rtk -> ꦡ둜 λ³€ν™˜λ˜λŠ” 버그 μˆ˜μ •, #15 볡자음 κ°€λŠ₯ μ—¬λΆ€ μ˜΅μ…˜ν™”, config ν•¨μˆ˜ μΆ”κ°€ algoshipda, 738
v1.0.7 2019.04.21 #22 isν•œκΈ€ ν•¨μˆ˜μ—μ„œ "κ°€" ~ "κΈ―" λ²”μœ„λ₯Ό ν•œκΈ€λ‘œ μΈμ‹ν•˜μ§€ μ•ŠλŠ” 버그 μˆ˜μ • 738, EntryDark
v1.1.0 2019.04.22 #6 index.d.ts 지원, #21 circleci 연동 738
v1.1.1 2019.07.31 ν™ˆνŽ˜μ΄μ§€ μ£Όμ†Œ λ³€κ²½ (https://inko.js.org), npm λ‹€μš΄λ‘œλ“œ λ°°μ§€ μΆ”κ°€ 738

Installation

Install or upgrade to 1.1.2 using your package manager.

npm

npm install [email protected]

yarn

As Browser module

CDN

<script src="https://cdn.jsdelivr.net/npm/[email protected]/inko.min.js"></script>

Bower

bower install inko

Usage

var Inko = require('inko');
var inko = new Inko();

// ES6
import Inko from 'inko';
let inko = new Inko();

μ˜μ–΄ β†’ ν•œκΈ€

inko.en2ko('dkssudgktpdy tptkd!');
// μ•ˆλ…•ν•˜μ„Έμš” 세상!

ν•œκΈ€ β†’ μ˜μ–΄

inko.ko2en('ㅗ디ㅣㅐ μž¬κΉ…!');
// hello world!

볡자음 κ°€λŠ₯ μ—¬λΆ€ μ„€μ •

// allowDoubleConsonant의 기본값은 falseμž…λ‹ˆλ‹€
var option = {
  allowDoubleConsonant: true,
};

섀정을 λΆ€μ—¬ν•˜λŠ” 방법은 μ•„λž˜μ˜ μ„Έ κ°€μ§€ λ°©λ²•μœΌλ‘œ μ§€μ›ν•©λ‹ˆλ‹€.

  1. μΈμŠ€ν„΄μŠ€ 생성할 λ•Œ μƒμ„±μžμ˜ 인자둜 μ„€μ • λΆ€μ—¬
var inko = new Inko(option);
  1. config ν•¨μˆ˜λ‘œ μ„€μ • λΆ€μ—¬
inko.config(option);
  1. en2ko ν•¨μˆ˜μ˜ 인자둜 μ„€μ • λΆ€μ—¬
inko.en2ko('rtrt', option);
// output: γ„³γ„³
inko.en2ko('rtrt', { allowDoubleConsonant: false });
// output: γ„±γ……γ„±γ……

TypeScript

The package includes type declarations for CommonJS and ES module consumers.

import Inko, { type InkoOption } from 'inko';

const options: InkoOption = { allowDoubleConsonant: true };
const inko = new Inko(options);

For CommonJS TypeScript projects without esModuleInterop, use import Inko = require('inko').

Callbacks

Conversion methods keep their instance configuration when used as callbacks:

const { ko2en } = new Inko();
['μ•ˆλ…•', 'γ„»γ„³'].map(ko2en); // ['dkssud', 'fart']

Supported keyboard layout

Inko converts the standard Korean two-set (λ‘λ²Œμ‹) keyboard layout. Three-set (μ„Έλ²Œμ‹) support is tracked in #11.

Shifted consonants retain their original key mapping: γ…‰γ…ˆ. becomes Ww.. Inko does not guess whether the intended text was www.; that enhancement is tracked in #23.

Development

Use Node.js 22 or newer and npm to work on the library:

npm ci
npm run verify

verify runs conversion tests, rebuilds the browser bundle, and checks the packed npm artifact with CommonJS, ES modules, TypeScript, browser, AMD, and Web Worker consumers. The runtime library has no dependencies.

See the release guide for publishing instructions.

Related

  • inko-cli - Use inko on the command line
  • inko-web - Inko official website
  • inko-chrome-extension - Inko chrome extension
  • alfred-inko - Alfred 3 workflow to convert misspelled English characters into Korean letters (& vice versa)
  • inko.py - Python implementation of inko.js
  • inko.kt - Kotlin implementation of inko.js (Also works in Java)

Contributors


738 (Jon Jee)

algoshipda

ahnsv

hyoungsp

joonghyeob-shin

Contributing

이 μ˜€ν”ˆμ†ŒμŠ€ ν”„λ‘œμ νŠΈμ— λˆ„κ΅¬λ‚˜ κΈ°μ—¬ν•  수 μžˆμŠ΅λ‹ˆλ‹€. κΈ°μ—¬ν•˜κ³  싢은 뢄듀은 이 λ ˆν¬μ§€ν† λ¦¬λ₯Ό ν¬ν¬ν•œ ν›„ ν’€λ¦¬ν€˜μŠ€νŠΈ μš”μ²­ν•΄μ£Όμ„Έμš”!

License

Inko.js is released under the MIT License. See LICENSE file for details.

About

πŸ‡°πŸ‡·μ˜νƒ€λ₯Ό ν•œκΈ€λ‘œ, ν•œνƒ€λ₯Ό μ˜μ–΄λ‘œ λ³€ν™˜ν•΄μ£ΌλŠ” μžλ°”μŠ€ν¬λ¦½νŠΈ μ˜€ν”ˆμ†ŒμŠ€ 라이브러리

Topics

Resources

Stars

231 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages