Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waithawoo/node-deepl-translate
To translate languages with Deepl Translation API
https://github.com/waithawoo/node-deepl-translate
api deepl deepl-translate deepltranslate translate translate-api translation translation-api
Last synced: 17 days ago
JSON representation
To translate languages with Deepl Translation API
- Host: GitHub
- URL: https://github.com/waithawoo/node-deepl-translate
- Owner: waithawoo
- License: mit
- Created: 2023-06-17T06:43:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-17T07:30:13.000Z (over 1 year ago)
- Last Synced: 2024-03-15T04:22:29.406Z (11 months ago)
- Topics: api, deepl, deepl-translate, deepltranslate, translate, translate-api, translation, translation-api
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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);
})
```
## SecurityIf you discover any security related issues, please email them to [[email protected]](mailto:[email protected]) instead of using the issue tracker.
## License
The MIT License (MIT). Please see the [License File](LICENSE) for more information.