deepl-api
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i deepl-api

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

7.16 kB

Total Files

15

Last publish

Collaborators

  • su-