Package Exports
- zhuyin-improved
- zhuyin-improved/lib/cjs/index.js
- zhuyin-improved/lib/esm/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zhuyin-improved) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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)
// [ 'ㄨㄛˇ', 'ㄉㄜ˙', 'ㄇㄠ', 'ㄒㄧˇ', 'ㄏㄨㄢ˙', 'ㄏㄜ', 'ㄋㄧㄡˊ', 'ㄋㄞˇ' ]