cn-translator-cli

0.1.2 • Public • Published

cn-translator-cli

Translator for Chinese command-line interfaces

v0.1.2 status

Inspired by <axetroy/translate-cli>

Installation

npm install -g cn-translator-cli

Usage

tfc is short for Translator for Chinese

$ tfc -h
 
  Usage: tfc [options] [contents...]
 
  translator for Chinese
 
  Options:
 
    -h, --help                 output usage information
    -V, --version              output the version number
    -f, --from <lang>          From Language, short locale name(e.g. en, zh)
    -t, --to <lang>            To Language, short locale name(e.g. zh, en)
    -p, --platform <platform>  Translation platform(e.g. baidu, youdao, google

Example

$ tfc 你好世界
# >>> Hello world 
 
$ tfc 'Hello world'
# >>> 你好世界 

License

The MIT License

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cn-translator-cli

    Weekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • windomz