change-case-jp
v1.0.4
Published
Convert from hiragana to katakana or vice versa.
Downloads
134
Maintainers
Readme
change-case-jp
ひらがな ← → カタカナ
Convert from hiragana to katakana or vice versa.
Installation
npm i change-case-jp
Usage
import { hiraganaCase } from 'change-case-jp';
hiraganaCase('ドラえもん');
// => "どらえもん"
Examples
hiraganaCase
hiraganaCase('ドラえもん');
// => "どらえもん"
katakanaCase
katakanaCase('ドラえもん');
// => "ドラエモン"
All List
hiraganaCase(
'アイウエオ,カキクケコ,サシスセソ,タチツテト,ナニヌネノ,ハヒフヘホ,マミムメモ,ヤユヨ,ラリルレロ,ワヰヱヲ,ン,ァィゥェォ,ッ,ャュョ,ガギグゲゴ,ザジズゼゾ,ダヂヅデド,バビブベボ,パピプペポ,ヴ',
);
// => あいうえお,かきくけこ,さしすせそ,たちつてと,なにぬねの,はひふへほ,まみむめも,やゆよ,らりるれろ,わゐゑを,ん,ぁぃぅぇぉ,っ,ゃゅょ,がぎぐげご,ざじずぜぞ,だぢづでど,ばびぶべぼ,ぱぴぷぺぽ,ゔ
Running Tests
To run tests, run the following command
pnpm run test
License
MIT