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

0.6.1 • Public • Published

free translate

A free and unlimited translator for Node.js

🈂️ ⠀free text translator for Node.js.

Install

To install free-translate, you can use NPM:

npm install free-translate

Quick examples

const { translate } = require('free-translate');

(async () => {
  const translatedText = await translate('Hello World', { from: 'en', to: 'ja' });

  console.log(translatedText); // こんにちは世界
})();

Automatic language recognition

If the language informed in the from is dynamic, just do not send it and the translator will automatically recognize it:

const { translate } = require('free-translate');

(async () => {
  const translatedText = await translate('This is cool!', { to: 'ja' });

  console.log(translatedText); // これはカッコいい!
})();

Support

Contact me!


Licensa

License

/free-translate/

    Package Sidebar

    Install

    npm i free-translate

    Weekly Downloads

    123

    Version

    0.6.1

    License

    MIT

    Unpacked Size

    19.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • ribeirogab