1.0.0 • Published 6 years ago

deepl-pro v1.0.0

Weekly downloads
3
License
ISC
Repository
-
Last release
6 years ago

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> !