🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@kreisler/js-google-translate-free

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kreisler/js-google-translate-free

Google Translate Free library for JS

Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
1.7K
51.56%
Maintainers
1
Weekly downloads
 
Created
Source

JS GoogleTranslate free

Simple JS library for talking to Google's Translate API for free.

Eliminates IP request limitations

Usage

Install package

npm i @kreisler/js-google-translate-free

Import module

import GoogleTranslate from "@kreisler/js-google-translate-free";

or

const GoogleTranslate = require("@kreisler/js-google-translate-free");

Example

(async () => {
  try {
    const source = "es";
    const target = "en";
    const text = "buenos dĂ­as";
    const translation = await GoogleTranslate.translate(source, target, text);
    console.log(translation); // Good morning
  } catch (error) {
    console.error(error);
  }
})();

Keywords

google

FAQs

Package last updated on 13 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts