Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 682 Bytes

README.md

File metadata and controls

36 lines (19 loc) · 682 Bytes

romaji.js

JavaScript utility that makes conversion between Japanese romaji and kana. Currently supports Hepburn system only.

NPM

Install

Using npm

npm install romaji

Using bower

bower install romaji	

Test

npm install -g mocha
npm test

Build

npm install -g uglify-js
npm run-script build

Usage

romaji.fromKana('ローマ');   //return 'rōma'

romaji.toHiragana('tsuzuku');    // return 'つづく'

romaji.toKatakana('chāhan');  //return 'チャーハン'