prettify-pinyin

0.1.5 • Public • Published

prettify-pinyin Build Status Coverage Status

prettify-pinyin will take your pinyin written with letters and numbers (i.e. 'ni3 hao3') and add tone marks, so you don't have to. I am using this module to show pretty formats for the pronunciation entries for the CC-CEDICT dictionary which is written with letters and numbers.

Usage

var pinyin = require('prettify-pinyin');

pinyin.prettify('ni3 hao3');    // => 'nǐ hǎo'
pinyin.prettify('zhong1 guo2'); // => 'zhōng guó'

License

MIT

Package Sidebar

Install

npm i prettify-pinyin

Weekly Downloads

542

Version

0.1.5

License

MIT

Last publish

Collaborators

  • johnheroy