Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jswork/next-baidu-fanyi

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jswork/next-baidu-fanyi

Baidu fangyi api wrapper.

  • 1.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by260%
Maintainers
0
Weekly downloads
 
Created
Source

next-baidu-fanyi

Baidu fangyi api wrapper.

version license size download

installation

npm install -S @jswork/next-baidu-fanyi

apis

apiparamsdescription
translate-Get translation

options

namedefaultdescription
delay1000Call fn duration.
fromzhfrom which language
toento which language
appid--
secret--
q-keywords

usage

import NxBaiduFanyi from '@jswork/next-baidu-fanyi';

// code goes here:
NxBaiduFanyi.translate({ q: '苹果', from:'zh', to:'en' }).then((res) => {
  /*
  // res:
  {
    from: 'zh',
    to: 'en',
    trans_result: [{ src: '苹果', dst: 'Apple' }]
  }
  */
});

resources

license

Code released under the MIT license.

Keywords

FAQs

Package last updated on 02 Aug 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc