Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/windomz/cn-translator-cli
Translator for Chinese command-line interfaces
https://github.com/windomz/cn-translator-cli
chinese-translation cli cli-app nodejs translate translator
Last synced: about 2 months ago
JSON representation
Translator for Chinese command-line interfaces
- Host: GitHub
- URL: https://github.com/windomz/cn-translator-cli
- Owner: WindomZ
- License: mit
- Created: 2017-03-11T09:15:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T01:50:05.000Z (almost 8 years ago)
- Last Synced: 2024-10-14T09:44:45.758Z (2 months ago)
- Topics: chinese-translation, cli, cli-app, nodejs, translate, translator
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cn-translator-cli
Translator for Chinese command-line interfaces![v0.1.2](https://img.shields.io/badge/version-v0.1.2-orange.svg)
![status](https://img.shields.io/badge/status-beta-yellow.svg)Inspired by <[axetroy/translate-cli](https://github.com/axetroy/translate-cli)>
## Installation
```bash
npm install -g cn-translator-cli
```## Usage
**tfc** is short for *Translator for Chinese*
```bash
$ tfc -hUsage: tfc [options] [contents...]
translator for Chinese
Options:
-h, --help output usage information
-V, --version output the version number
-f, --from From Language, short locale name(e.g. en, zh)
-t, --to To Language, short locale name(e.g. zh, en)
-p, --platform Translation platform(e.g. baidu, youdao, google
```## Example
```bash
$ tfc 你好世界
# >>> Hello world$ tfc 'Hello world'
# >>> 你好世界
```## License
The [MIT License](https://github.com/WindomZ/cn-translator-cli/blob/master/LICENSE)