Skip to content

Richienb/tripe

Repository files navigation

Tripe Travis CI Build Status

Translate text through Google Translate.

NPM Badge

Improvements over google-translate-api

  • Supports browsers.
  • Automatically autocorrect text.
  • Simpler interface.
  • Actively maintained.

Install

npm install tripe

Usage

const tripe = require("tripe");

(async () => {
	await tripe("Good morning", "fr")
	//=> 'Bonjour!'
})()

API

tripe(text, from, to)

tripe(text, to)

text

Type: string

The text to translate.

from

Type: string

The initial language.

to

Type: string

The target language.

About

Translate text through Google Translate.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published