0.0.2 • Published 7 years ago

hanbongul v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

한본글

OI廿O・l己 云トフ 从フI
 己⊥  ⊥  し一 一  
  し      己               

Install

$ npm install hanbongul

Usage

browser

<script src="dist/hanbongul.js"></script>
<script>
  hanbongulize('일본어로 한글쓰기')
</script>

node

const hanbongulize = require('hanbongul').hanbongulize
hanbongulize('일본어로 한글쓰기')

Build

치환표는 src/dictionary.txt이며, npm test를 실행하면 글자의 길이를 계산하여 src/widthMap.js파일이 만들어집니다.

# 패키지 설치
$ npm install

# 치환표 수정
$ npm test

# 번들 파일 생성
$ webpack