happy-translate
v0.2.1
Published
Translate tool with commander line.
Downloads
2
Maintainers
Readme
translate
Translate word in CLI.
Install
npm install happy-translate --global
or
yarn global add happy-translate
Usage
After installed, you can use it like below.
Proxy
Because of this package use google-translate-api, so some places like China, you should set a proxy to connect google.
You can set a environment variable PROXY
like below.
PROXY=socks://127.0.0.1:1080 translate hello
you can also new a file .happyrc
in you home dir, and set proxy with a key proxy
like below.