Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

deeplx-node

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deeplx-node

Port of deeplx: an unofficial package to translate text using DeepL

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

deeplx-node

Port of OwO-Network/DeepLX (go) to Node.js. This is a native Node.js implementation and not a wrapper of the deeplx binary.

Note: Another package called 'deeplx' exists on NPM but, compared to this package, it contains a lot more like a full CLI and the bloated 'got' http client package.

installation

npm i deeplx-node

Requires Node.js 16+.

usage

import Deeplx from 'deeplx-node'; // or "const { Deeplx } = require('deeplx-node')" for CJS.

const deeplx = new Deeplx();

deeplx.translate('hello world', 'en', 'nl').then(console.log); // ['hallo wereld']

See examples for a full example in TypeScript, or clone this repository and try it out yourself: npx ts-node ./examples/main.ts.

Keywords

deeplx

FAQs

Package last updated on 23 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts