JSPM

  • Created
  • Published
  • Downloads 1121
  • Score
    100M100P100Q131848F
  • License MIT

Convert romaji into hiragana

Package Exports

  • @koozaki/romaji-conv

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 (@koozaki/romaji-conv) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

romaji-conv

Convert romaji into hiragana

About

  • ローマ字をひらがなに変換します。
  • 訓令式、ヘボン式どちらにも対応しています。
  • Node.js, Browser, Shell 上で実行可能な軽量 JavaScript ライブラリです。

Sample

Node.js

const romajiConv = require('romaji-conv');
console.log(romajiConv('anoinutyauchautocyauntyau'));
// あのいぬちゃうちゃうとちゃうんちゃう

Browser

<script src="romaji-conv.js"></script>
<script>
console.log(window.romajiConv('anoinutyauchautocyauntyau'));
</script>
// あのいぬちゃうちゃうとちゃうんちゃう

CLI (Shell)

$ ./bin/romaji-conv.js anoinutyauchautocyauntyau
あのいぬちゃうちゃうとちゃうんちゃう