zhuyin
TypeScript icon, indicating that this package has built-in type declarations

1.14.0 • Public • Published

Zhuyin 注音

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

Install

npm install zhuyin

Usage

const zhuyin = require('zhuyin')
 
zhuyin('wǒ de māo xǐhuan hē níunǎi')
.then(console.log)
 
zhuyin('wo3 de mao1 xi3huan he1niu2 nai3')
.then(console.log)
 
zhuyin('wǒdemāoxǐhuanhēníunǎi')
.then(console.log)
 
zhuyin('wo3demao1xi3huanhe1niu2nai3')
.then(console.log)
 
// [ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ]

Related

Contributing

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

Package Sidebar

Install

npm i zhuyin

Weekly Downloads

110

Version

1.14.0

License

ISC

Unpacked Size

30.9 kB

Total Files

9

Last publish

Collaborators

  • pepebecker