siwi-pinyin

1.0.5 • Public • Published

Build Status npm npm Github file size

siwi-pinyin

hanzi to pinyin for nodejs

install

yarn add siwi-pinyin

npm install siwi-pinyin

test

const expect = require('chai').expect
describe('/lib/index.js', () => {
    it('convert',async () => {
        const pinyin = require('../index')
        const hanzi = '还好,欢迎光临';
        const res = await pinyin.convert(hanzi)
        console.log(res)
        expect(res).to.be.equal('hái hǎo ,huān yíng guāng lín ')
    });
});

/siwi-pinyin/

    Package Sidebar

    Install

    npm i siwi-pinyin

    Weekly Downloads

    6

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    2.31 MB

    Total Files

    17

    Last publish

    Collaborators

    • siwi