Socket
Socket
Sign inDemoInstall

@opentranslate/baidu-domain

Package Overview
Dependencies
11
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @opentranslate/baidu-domain

Baidu domain translator with OpenTranslate API.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Install size
608 kB
Created
Weekly downloads
 

Readme

Source

@opentranslate/baidu-domain

npm-version OpenTranslate

Baidu-domain translator with OpenTranslate API.

Installation

Yarn

yarn add @opentranslate/baidu-domain

NPM

npm i @opentranslate/baidu-domain

Usage

import BaiduDomain from '@opentranslate/baidu-domain'

//please refer to https://api.fanyi.baidu.com/doc/22 for more details
const baiduDomain = new BaiduDomain({
    config: {
      domain: "medicine", // select from ["medicine", "electronics", "mechanics"]
      key: process.env.KEY as string,
      appid: process.env.APPID as string
    }
  });

baiduDomain.translate("肌萎缩侧索硬化症","zh-CN","en").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.

Keywords

FAQs

Last updated on 03 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc