JSPM

change-case-jp

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q46337F

Convert from hiragana to katakana or vice versa.

Package Exports

  • change-case-jp
  • change-case-jp/dist/main.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (change-case-jp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

change-case-jp

Test

ひらがな ← → カタカナ

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