translator-cli

1.0.0 • Public • Published

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|<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

Readme

Keywords

Package Sidebar

Install

npm i translator-cli

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.62 kB

Total Files

12

Last publish

Collaborators

  • liuxing