Skip to content

code4fukui/DeepLAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepLAPI for Deno

a lib for DeepL API

Usage

set API_KEY from DeepL on .env file

DEEPL_API_KEY=******
import { DeepLAPI } from "https://code4fukui.github.io/DeepLAPI/DeepLAPI.js";

const api = new DeepLAPI();
console.log(await api.translate("こんにちは", null, "en-US")); // Hello. - Hello.
console.log(await api.translate("Hello", null, "ja")); // こんにちは

simple src for Deno

import * as deepl from "npm:deepl-node";

const authKey = "****";

const translator = new deepl.Translator(authKey);

const result = await translator.translateText("Hello, world!", null, "ja");
console.log(result.text);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published