Skip to content

pepebecker/zhuyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zhuyin 注音

npm version Travis Build Status Greenkeeper badge dependency status dev dependency status ISC-licensed chat on gitter

Install

npm install zhuyin

Usage

import { fromPinyin } from 'zhuyin'

console.log(fromPinyin('wǒ de māo xǐhuan hē níunǎi'))

console.log(fromPinyin('wo3 de mao1 xi3huan he1niu2 nai3'))

console.log(fromPinyin('wǒdemāoxǐhuanhēníunǎi'))

console.log(fromPinyin('wo3demao1xi3huanhe1niu2nai3'))

// [ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ]

Related

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Releases

No releases published

Packages

No packages published