tripe
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i tripe

Weekly Downloads

44

Version

1.0.1

License

MIT

Unpacked Size

5.41 kB

Total Files

9

Last publish

Collaborators

  • richienb