KOROMAN: Korean Romanizer with pronunciation rules based on 국립국어원 표기법
npm install koromanhtml
`
$3
`bash
npm install koroman
`
#### CommonJS
`js
const koroman = require('koroman');
// Basic usage
koroman.romanize("한글"); // → "hangul"
// With pronunciation rules disabled
koroman.romanize("해돋이", { usePronunciationRules: false }); // → "haedodi"
// With pronunciation rules enabled (default)
koroman.romanize("해돋이"); // → "haedoji"
// With different casing options
koroman.romanize("한글", { casingOption: "uppercase" }); // → "HANGUL"
koroman.romanize("안녕 한글", { casingOption: "capitalize-word" }); // → "Annyeong hangeul"
koroman.romanize("안녕\n한글 로마자 변환", { casingOption: "capitalize-line" }); // → "Annyeong\nHangeul Romaja Byeonhwan"
`
#### ESM (requires "type": "module" in package.json)
`js
import { romanize } from 'koroman';
romanize("한글"); // → "hangul"
`
#### Typescript
`ts
import { romanize } from 'koroman';
const result: string = romanize("로마자", {
usePronunciationRules: true,
casingOption: "capitalize-line"
}); // → "Romaja"
``