1.0.0 • Published 3 years ago

translator-cli v1.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

translator-cli

Travis npm version npm downloads JavaScript Style Guide

The command line app for translate

Install

$ npm install -g translator-cli

Features

  • translates words, phrases between English and Chinese
  • easy and fast switch between different API (e.g. youdao、iciba)

Usage

$ 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
# ...

Query words

$ 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
     测试员,测试工程师,软件测试工程师

Change source

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

LICENSE

MIT @ Liu Xing

1.0.0

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago