1.2.1 • Published 4 years ago

cn2pinyin v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Installation and Usage

Install the library with npm install cn2pinyin

var py = require('cn2pinyin');
or
import py from 'cn2pinyin';

整体转换
py.toPinyin('中文'); // ZHONGWEN
py.toPinyin('中文', ' '); // ZHONG WEN
py.toPinyin('中文', ' ', true); // zhong wen

某个字转换
py.atomToPinyin('中文', 0) // ZHONG
py.atomToPinyin('中文', 0, true) // zhong
1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago