Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imyelo/qq-fanyi-cli
:book: Tencent translator in command line
https://github.com/imyelo/qq-fanyi-cli
dict fanyi fy qq tencent translation translator
Last synced: 3 months ago
JSON representation
:book: Tencent translator in command line
- Host: GitHub
- URL: https://github.com/imyelo/qq-fanyi-cli
- Owner: imyelo
- License: mit
- Created: 2018-04-11T09:20:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T09:49:29.000Z (over 6 years ago)
- Last Synced: 2024-09-24T03:18:16.211Z (4 months ago)
- Topics: dict, fanyi, fy, qq, tencent, translation, translator
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# qq-fanyi-cli
> Tencent translator (QQ Fanyi) in command lineThe translation data is fetched from [fanyi.qq.com (腾讯翻译君)](http://fanyi.qq.com/).
## Installation
```bash
npm i -g qq-fanyi-cli
```## Usage
### Basic
```bash
fy 腾讯翻译君
# Tencent Mr. Translator
```### Piping
```bash
echo "命令行" | fy -t jp
# コマンドラインcurl -s https://pastebin.com/raw/dGS2Nyw7 | fy
# 在地铁车站。
#
# 人群中这些面孔的幻影;
# 潮湿的黑树枝上的花瓣。
#
# -埃兹拉·庞德
```### Advance
```bash
fy 和剪贴板搭配使用 | pbcopy
# With the clipboard
```## Options
### target
Example:```bash
# translate into Japanese
fy --target jp# is also equivalent to
fy -t jp
```### help
Example:```bash
fy --help# is also equivalent to
fy -h
```Run ``fy --help`` for more information.
## License
MIT @ [yelo](https://github.com/imyelo)