Have ideas to improve npm?Join in the discussion! »

    @opentranslate/baidu
    TypeScript icon, indicating that this package has built-in type declarations

    1.4.1 • Public • Published

    @opentranslate/baidu

    npm-version OpenTranslate

    Baidu translator with OpenTranslate API.

    Installation

    Yarn

    yarn add @opentranslate/baidu
    

    NPM

    npm i @opentranslate/baidu
    

    Usage

    import Baidu from '@opentranslate/baidu'
    
    //Please refer to http://api.fanyi.baidu.com/api/trans/product/prodinfo
    const baidu = new Baidu({
        config: {
            appid: "",
            key: ""
        }
    })
    
    baidu.translate('text').then(console.log)
    

    API

    See translator for more details.

    Disclaimer

    The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.

    Install

    npm i @opentranslate/baidu

    DownloadsWeekly Downloads

    24

    Version

    1.4.1

    License

    MIT

    Unpacked Size

    16.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar
    • avatar