TimAstier / pinyinize.js

A tool that converts Hanyu pinyin tone numbers to tone marks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pinyinize.js

NPM version Build Status

A tool that converts Hanyu pinyin tone numbers to tone marks.

Setup

$ npm install pinyinize --save

Usage

var pinyinize = require('pinyinize');

pinyinize('ma1 ma2 ma3 ma4 ma'); // returns 'mā má mǎ mà ma'

Tests

$ npm install -g mocha
$ npm test

License

MIT © Eric Nishio

About

A tool that converts Hanyu pinyin tone numbers to tone marks

License:MIT License


Languages

Language:JavaScript 100.0%