Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zyszys/cmd-trans

Translate something in the command line.
https://github.com/zyszys/cmd-trans

cmd translate translation translator

Last synced: 2 months ago
JSON representation

Translate something in the command line.

Awesome Lists containing this project

README

        

# cmd-trans

[![Travis CI](https://travis-ci.org/ZYSzys/cmd-trans.svg?branch=master)](https://travis-ci.org/ZYSzys/cmd-trans)
[![codecov](https://codecov.io/gh/ZYSzys/cmd-trans/badge.svg?branch=master)](https://codecov.io/gh/ZYSzys/cmd-trans?branch=master)
[![NPM version](https://img.shields.io/npm/v/cmd-trans.svg?style=flat)](https://npmjs.org/package/cmd-trans)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat)](https://github.com/prettier/prettier)
[![license](https://img.shields.io/github/license/ZYSzys/cmd-trans.svg)](https://github.com/ZYSzys/cmd-trans/blob/master/LICENSE)

> Translate something in the command line.

![](/screenshot.png)

## Install

```bash
# Global(全局安装)
$ npm install -g cmd-trans
```

## Usage

```bash
# Global(全局)
$ trans word
```

### Example

```bash
$ trans hello

hello [ həˈləʊ ] ~ fanyi.youdao.com

- int. 喂;哈罗
- n. 表示问候, 惊奇或唤起注意时的用语
- n. (Hello)人名;(法)埃洛

1. Hello
你好,您好,哈啰,喂
2. Hello Kitty
凯蒂猫,昵称,匿称,最想当的商品代言人
3. Hello Bebe
哈乐哈乐,乐扣乐扣

Translation done!
```

## LICENSE

MIT.