The command line app for translate
$ npm install -g translator-cli
- translates words, phrases between English and Chinese
- easy and fast switch between different API (e.g. youdao、iciba)
$ translator
Usage: translator [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
* Query words
query|q <words> Query words
ls List all the source
use <source> Change source to source
Of course, you can also use fanyi
or fy
like:
$ fanyi
# ···
# or
$ fy
# ...
$ fy <words>
# e.g.
$ fy test # or: fy query test、fy q test
test [ test ] ~ fanyi.youdao.com
- n. 试验;检验
- vt. 试验;测试
- vi. 试验;测试
- n. (Test)人名;(英)特斯特
1. Test
测试,测验,检验
2. Test Drive
Test Drive,Test Drive,无限狂飙
3. Test Engineer
测试员,测试工程师,软件测试工程师
List all the source
$ fy ls
* youdao -> http://fanyi.youdao.com
iciba -> http://dict-co.iciba.com
Change source to source
$ fy use iciba
source has been set to: iciba
MIT @ Liu Xing