deepl-free-translate
v1.0.0
Published
Bypass DeepL Translation API charges by wrapping their web portal services in an automated API client.
Maintainers
Readme
deepl-free-translate
Translate text using DeepL's web translator endpoints programmatically, bypassing developer API charges.
Features
- Sends query strings to free public translation modules.
- Translates across common language parameters.
- Zero subscription requirements.
Installation
npm install deepl-free-translateUsage
import { translateText } from 'deepl-free-translate';
// Translate Hello World to Spanish
const translation = await translateText('Hello World', 'en', 'es');
console.log(translation);
// Output: 'Hola Mundo'API Reference
translateText(text, sourceLang, targetLang)
Translates text inputs.
Parameters:
text:stringsourceLang:string(e.g.,'en','de')targetLang:string(e.g.,'es','fr')
Returns: Promise<string>
License
MIT
