yandex.translate

1.0.1 • Public • Published

Yandex.Translate

Yandex.Translate API for node.js

Installation

npm install yandex.translate

Usage

var YandexTranslator = require('yandex.translate');
 
var translator = new YandexTranslator(YOUR_API_KEY);
 
var translator.translate('hello', 'ru').then(console.log); // привет
var translator.detect('hello').then(console.log); // en

CLI Usage

$ yandex-translate hello
привет
 
$ yandex-translate hello fr
bonjour
 
$ yandex-translate hello | say # It's talking! 

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i yandex.translate

Weekly Downloads

8

Version

1.0.1

License

MIT

Last publish

Collaborators

  • nkt