@theowenyoung/sogou
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

@theowenyoung/sogou

npm-version OpenTranslate

Sogou translator with OpenTranslate API.

Installation

Yarn

yarn add @theowenyoung/sogou

NPM

npm i @theowenyoung/sogou

Usage

import Sogou from '@theowenyoung/sogou'
//please refer to https://deepi.sogou.com/?from=translatepc
const sogou = new Sogou(
    config: {
      pid: "your pid",
      key: "your key"
    }
)

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

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @theowenyoung/sogou

    Weekly Downloads

    0

    Version

    1.5.1

    License

    MIT

    Unpacked Size

    18.7 kB

    Total Files

    11

    Last publish

    Collaborators

    • theowenyoung