Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-translate-api-nodejs-client

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-translate-api-nodejs-client

Just a client for Google Translate API

  • 1.5.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

google-translate-api-nodejs-client

Just a client for Google Translate API

Compatible with NodeJS 6 (and with Google Cloud functions)

Usage


var GoogleTranslateApi=require('google-translate-api-nodejs-client');

new GoogleTranslateApi({
  API_KEY:'...'
})
  .translate({
    source:'en',
    target:'ge',
    text:'...text is here...'
  }, function(err,translation){
  
    // translation is a string representing the output translation
    // original response would be in html, this client converts the html to a proper text string	

  });

Check available language

cd google-translate-api-nodejs-client
GOOGLE_TRANSLATE_API_KEY=... node availableLanguages.js

TODO

  • support async/await style
  • validate input languages (according to List of supported languages) - extractable from API
  • add language detection in case 'from' language is not specified

FAQs

Package last updated on 04 Jan 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc