JSPM

pinyin-to-kana

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q58345F
  • License MIT

Translate Chinese pinyin to Japanese kana.

Package Exports

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

Readme

PinyinToKana

将中文拼音转换为日语假名
pinyin_to_kanji 的完全JavaScript实现.

Usage

// 将 mapping.tsv 放到 ./map.tsv
var p2k = await PinyinToKana.loadDict( "./map.tsv" )
p2k.pinyinToKana( "ni hao,shi jie." ) // ニーハオ、シージエ
// p2k.pinyin_to_kana( "ni hao,shi jie" ) ニーshi,jieジエ