pinyin-zhuyin
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

pinyin-zhuyin

Package for converting pinyin text to zhuyin/bopomofo text
拼音转换为注音(ㄅㄆㄇㄈ)

Install 安装

npm install pinyin-zhuyin

Usage 使用

import { pinyinToZhuyin } from 'pinyin-zhuyin';
console.log(pinyinToZhuyin('Wǒ bùshì měiguó rén. Tā shì měiguó rén.'));
// ㄨㄛˇ ㄅㄨˋㄕˋ ㄇㄟˇㄍㄨㄛˊ ㄖㄣˊ. ㄊㄚ ㄕˋ ㄇㄟˇㄍㄨㄛˊ ㄖㄣˊ.

Dependents (1)

Package Sidebar

Install

npm i pinyin-zhuyin

Weekly Downloads

18

Version

1.0.4

License

MIT

Unpacked Size

10.3 kB

Total Files

6

Last publish

Collaborators

  • peterolson