Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/argshook/translate
A simple Google Translate CLI Tool
https://github.com/argshook/translate
Last synced: about 20 hours ago
JSON representation
A simple Google Translate CLI Tool
- Host: GitHub
- URL: https://github.com/argshook/translate
- Owner: argshook
- Created: 2022-04-19T20:48:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-19T21:07:06.000Z (over 2 years ago)
- Last Synced: 2025-01-01T14:16:32.841Z (14 days ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A simple Google Translate CLI Tool
`npm` module which wraps [@vitalets/google-translate-api](https://github.com/vitalets/google-translate-api) and allows to use it as CLI.
## Install
### With `npm`
```bash
npm install -g @argshook/translate
```### With `yarn`
```bash
yarn global add @argshook/translate
```## Use
```txt
Usage: translate --from --to 'phrase to translate'Options:
--version Show version number [boolean]
-f, --from Language to translate from [string]
-t, --to Language to translate to. Default is English
[string] [default: "en"]
-l, --languages List of all available languages [boolean]
--help Show help [boolean]
```## Examples
```bash
$ translate --from uk 'Слава Україні!'
Glory to Ukraine!
``````bash
$ translate --to ru "it's not a special operation"
Это не специальная операция
```## Contribute
```bash
git clone [email protected]:argshook/translate.git
cd translate
npm install
node src/index.js
```