Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 392 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 392 Bytes

pinyinify

转换汉字为拼音。 Convert Chinese characters to pinyin.

> pinyinify("转换汉字为拼音。")
"zhuǎnhuàn hànzì wéi pīnyīn."

安装 Installation

npm install pinyinify

用法 Usage

var pinyinify = require("pinyinify");
console.log(pinyinify("你好!你今天吃饭了没?"));
// nǐhǎo! nǐ jīntiān chīfàn le méi?