@opentranslate2/caiyun
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

@opentranslate/caiyun

npm-version OpenTranslate

caiyun translator with OpenTranslate API.

Installation

Yarn

yarn add @opentranslate/caiyun

NPM

npm i @opentranslate/caiyun

Usage

import Caiyun from '@opentranslate/caiyun'

const caiyun = new Caiyun({
    config: {
      //please refer to https://fanyi.caiyunapp.com/#/api
      token: ""
    }
  });

caiyun.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.

Package Sidebar

Install

npm i @opentranslate2/caiyun

Weekly Downloads

55

Version

1.4.2

License

MIT

Unpacked Size

13 kB

Total Files

11

Last publish

Collaborators

  • allentown521