@cicara/tiny-pinyin
v0.0.4
Published
lightweight chinese character to pinyin library
Readme
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