@argshook/translate
v1.0.0
Published
A simple Google Translate CLI Tool
Downloads
4
Readme
A simple Google Translate CLI Tool
npm
module which wraps @vitalets/google-translate-api and allows to use it as CLI.
Install
With npm
npm install -g @argshook/translate
With yarn
yarn global add @argshook/translate
Use
Usage: translate --from <lang> --to <lang> 'phrase to translate'
Options:
--version Show version number [boolean]
-f, --from Language to translate from [string]
-t, --to Language to translate to. Default is English
[string] [default: "en"]
-l, --languages List of all available languages [boolean]
--help Show help [boolean]
Examples
$ translate --from uk 'Слава Україні!'
Glory to Ukraine!
$ translate --to ru "it's not a special operation"
Это не специальная операция
Contribute
git clone [email protected]:argshook/translate.git
cd translate
npm install
node src/index.js