en2ch

1.0.6 • Public • Published

en2ch

Use baidu fanyi api, to archieve English text to Chinese text translation. Thanks baidu fanyi~

Travis CI Status License: MIT

Prepare

npm i en2ch --save

Use

const en2ch = require('en2ch');

en2ch('hello world').then(ret => {
    console.log(ret); // "你好世界"
}).catch(err => {
    console.log(err.message);
});

Example

npm run example

en2ch demo

Test

npm run test
npm run test-cov

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i en2ch

    Weekly Downloads

    2

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • x-jray