# deepltranslate

> To use deepl translate api

Latest version **1.0.1** (published 2023-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install deepltranslate
pnpm add deepltranslate
yarn add deepltranslate
bun add deepltranslate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-06-17 |
| First published | 2023-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wai Thaw Oo |
| Maintainers | waithawoo |
| Keywords | deepltranslate, deepl, translate, api, translate api |

## Links

- npm: https://www.npmjs.com/package/deepltranslate
- Repository: https://github.com/waithawoo/node-deepl-translate
- Homepage: https://github.com/waithawoo/node-deepl-translate#readme
- Issues: https://github.com/waithawoo/node-deepl-translate/issues
- npm.io page: https://npm.io/package/deepltranslate

## Dependencies (1)

- [deepltranslate](https://npm.io/package/deepltranslate.md) ^1.0.0

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-06-17
- 1.0.0 — 2023-06-17

## README

# Node Deepl API Translation

## To translate languages with Deepl Translation API

- **[Installation](#installation)**
- **[Usage](#usage)**

## Installation
Install this package via [npm](https://npmjs.com/).

```
npm install deepltranslate
```
## Usage
- import the package and create a new object by passing token 
```
let deeplApi = require("deepltranslate")

let deeplTranslation = new deeplApi({token: 'this is token'})
```
- default hostname is 'api.deepl.com' and you can also pass hostname like this :
```
let deeplTranslation = new deeplApi({token: 'this is token', hostname: 'this is hostname'})
```
### Translate
```
deeplTranslation.translate("hello", "en", "ja").then((res)=>{
    console.log(res);
})
```
### Get supported languages
```
deeplTranslation.getLanguages().then((res)=>{
    console.log(res);
})
```
## Security

If you discover any security related issues, please email them to [waithawoocw@gmail.com](mailto:waithawoocw@gmail.com) instead of using the issue tracker.

## License

The MIT License (MIT). Please see the [License File](LICENSE) for more information.

---
_Source: https://npm.io/package/deepltranslate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
