Skip to content

S112/cn2pinyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published