romaji-to-kana-ng
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

RomajiToKanaNg

Provides an angular pipe for converting roman characters to kana.

Developer Usage

Installation npm install --save romaji-to-kana

Import the module

import { RomajiToKanaModule } from 'romaji-to-kana';
 
@ngModule(
    ...
    imports[
        ...
        RomajiToKanaModule
    ]
)

Usage with ngModel

<input [ngModel]="value | romajiToKana" (ngModelChange)="value=$event" type="text"/>

Enduser Usage

Input your romaji phonetically. Capitals will be converted to katakana whereas lowercase is converted to hiragana. Mixed case will be ignored. '-' hyphens will be converted to katakana long vowels. Example: ka -> か gyo -> ぎょ gga -> っが.

Package Sidebar

Install

npm i romaji-to-kana-ng

Weekly Downloads

3

Version

1.0.1

License

BSD-3-Clause

Unpacked Size

138 kB

Total Files

17

Last publish

Collaborators

  • ethanmassie