deepltranslate

1.0.1 • Public • Published

Node Deepl API Translation

To translate languages with Deepl Translation API

Installation

Install this package via npm.

npm install deepltranslate

Usage

  • import the package and create a new object by passing token
let deeplApi = require("deepltranslate")

let deeplTranslation = new deeplApi({token: 'this is token'})
  • default hostname is 'api.deepl.com' and you can also pass hostname like this :
let deeplTranslation = new deeplApi({token: 'this is token', hostname: 'this is hostname'})

Translate

deeplTranslation.translate("hello", "en", "ja").then((res)=>{
    console.log(res);
})

Get supported languages

deeplTranslation.getLanguages().then((res)=>{
    console.log(res);
})

Security

If you discover any security related issues, please email them to waithawoocw@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see the License File for more information.

Package Sidebar

Install

npm i deepltranslate

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

6.09 kB

Total Files

6

Last publish

Collaborators

  • waithawoo