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="https://cdn.jsdelivr.net/npm/@koozaki/romaji-conv/dist/romaji-conv.js"></script>
<script>
console.log(window.romajiConv('anoinutyauchautocyauntyau'));
</script>
// あのいぬちゃうちゃうとちゃうんちゃうCLI (Shell)
$ ./bin/romaji-conv.js anoinutyauchautocyauntyau
あのいぬちゃうちゃうとちゃうんちゃう