0.1.2 • Published 4 months ago
hangul-josa v0.1.2
hangul-josa 
은/는, 을/를, 이/가, 와/과, 로/으로 처리를 현대적인 javascript 문법으로 편하게 해보아요.
Let's handle Korean postposition with ease using modern javascript syntax!
import { josa, 는, 을 } from 'hangul-josa'
const player = '지현'
const skill = '구르기'
console.log(josa`${player}${는} ${skill}${을} 사용했다!`)
// 지현은 구르기를 사용했다!
Features
- Fast and lightweight (Gzipped size < 500B)
- Utilizes modern JS, easy and simple to use
- Tree-shakeable, side-effect free, and no dependencies
- IE11 support
Prior works
- josa-js, best implementation so far
- flyskyne/Josa.js, added 로/으로 support to the josa-js
- emptydream/JoLib, it works but too big (5.53KiB)
- naradesign/hangul.josa.js, jQuery Plugin