UNPKG

@polvtypes/chinese-to-pinyin

Version:

TypeScript definition for chinese-to-pinyin

6 lines (4 loc) 141 B
import pinyin from "chinese-to-pinyin"; import "../src/index"; const p = pinyin("你好"); const q = pinyin("123淘宝", {keepRest: true});