kana2mora
v0.3.0
Published
Divide a string of Japanese Kana into mora
Downloads
41
Readme
kana2mora
Divide a string of Japanese Kana into mora
Installation
$ npm i kana2mora
Usage
You can use ECMAScript modules.
import { katakana2mora } import "kana2mora"
katakana2mora("チョコレート") // ["チョ", "コ", "レ", "ー", "ト"]
You can also use CommonJS modules.
const { katakana2mora } = require("kana2mora")
katakana2mora("チョコレート") // ["チョ", "コ", "レ", "ー", "ト"]