UNPKG
@polvtypes/chinese-to-pinyin
Version:
latest (1.1.3)
1.1.3
TypeScript definition for chinese-to-pinyin
github.com/patarapolw/polvtypes
patarapolw/polvtypes
@polvtypes/chinese-to-pinyin
/
tests
/
index.spec.ts
6 lines
(4 loc)
•
141 B
text/typescript
View Raw
1
2
3
4
5
6
import
pinyin
from
"chinese-to-pinyin"
;
import
"../src/index"
;
const
p =
pinyin
(
"你好"
);
const
q =
pinyin
(
"123淘宝"
, {
keepRest
:
true
});