deepl-pro

1.0.0 • Public • Published

Deepl Pro Translator Service

Deepl is the better translator service at this time. This service is designed for PRO accounts : https://www.deepl.com/pro-registration.html

Installation

npm install deepl-pro

Usage

Load Deepl with the auth_key and default options

const deepl = require("deepl-pro")("XXXXXXXXXXXXX")

Load Deepl with your own options

const deepl = require("deepl-pro")({
    auth_key: "XXXXXXXXXXXXX",
    debug: false,
    tag_handling: 'xml',
    split_sentences: '0',
    preserve_formatting: '1'
})

Request a translation

deep.translate("Hello! <b>World</b>!", "en", "fr", function(_err, _results) {
    console.log("TRANSLATE/", _err, _results)
})
RESULTS/ null Bonjour ! <b>Monde</b> !

Readme

Keywords

Package Sidebar

Install

npm i deepl-pro

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.76 kB

Total Files

4

Last publish

Collaborators

  • eventbots