mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 00:27:21 +09:00
6 lines
166 B
TypeScript
6 lines
166 B
TypeScript
const moji = require('moji');
|
|
|
|
export default function toHiragana(str: string): string {
|
|
return moji(str).convert('HK', 'ZK').convert('KK', 'HG').toString();
|
|
}
|