aaru-translator
v1.0.1
Published
Google translate free library for node js
Downloads
122
Maintainers
Readme
Aaru Translator
Simple nodejs library for talking to Google's Translate API.
Usage
Install package
npm install aaru-translator
Import module
const aaruTranslator = require("aaru-translator");
Example
(async () => {
try {
const source = "es";
const target = "en";
const text = "buenos días";
const translation = await aaruTranslator.translate(source, target, text);
console.log(translation);
} catch (error) {
console.error(error);
}
})();