Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 536 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 536 Bytes

Deepl-api

A deelpAPI wrapper available in typescript

Install

npm

npm install deepl-api

yarn

yarn add deepl-api

Use

import { translate } from 'deepl-api';

const response = await translate({
  text: 'Hello',
  target_lang: 'JA',
  auth_key: 'authkey',
})

console.log(response.data);

response.data

{
  "translations": [
    {
      "detected_source_language": "EN",
      "text": "こんにちは"
    }
  ]
}

see