0.0.4 • Published 11 months ago
@cicara/tiny-pinyin v0.0.4
tiny-pinyin
This is a lightweight Chinese character-to-pinyin library that I currently use in conjunction with slug.
Polyphonic characters and tones are not supported.
pnpm add @cicara/tiny-pinyinimport pinyin from "@cicara/tiny-pinyin";
pinyin.convertToPinyin("安装和使用", " "); // an zhuang he shi yong