DeepL/deepl-node
Official Node.js library for the DeepL language translation API.
What it solves
This library provides a convenient way for Node.js applications to integrate the DeepL API, allowing developers to programmatically translate text and documents into multiple languages with high quality.
How it works
Developers instantiate a DeepLClient using an API authentication key. The library provides high-level methods like translateText() and translateDocument() to send content to DeepL's servers and receive translations. It also supports advanced configuration options such as formality settings, custom instructions, and the use of glossaries to ensure specific terminology is used.
Who it’s for
Node.js developers who want to build translation features into their applications, supporting various Node.js versions (12 through 24) and TypeScript.
Highlights
- Text and Document Translation: Supports translating strings or arrays of strings, as well as files (e.g., .docx, .pptx).
- Document Minification: Reduces the size of large documents by replacing media with placeholders to bypass API file size limits.
- Customization: Offers control over formality (formal vs. informal), custom instructions for translation behavior, and support for multilingual glossaries.
- Developer Friendly: Fully supports TypeScript and provides promise-based asynchronous functions.
Related
- Project
- Project
- Project
- Project
- Project