1.2.0 • Published 4 years ago
deepl-api v1.2.0
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": "こんにちは"
}
]
}