yandex.translate
v1.0.1
Published
Yandex.Translate API for node.js
Downloads
63
Readme
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!