Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 294 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 294 Bytes

pinyin

无字典的汉字转拼音方案,保证浏览器端最小体积 (12k),但不支持多音字)。

fork 自 https://github.com/huntbao/pinyin

差别:

  • 迁移到 Typescript
  • 更合适的正则汉字范围判断
  • 只返回拼音(忽略非中文)的可选项