https://github.com/thinca/wtrans
A CLI tool to translate text via web translation service.
https://github.com/thinca/wtrans
cli translation
Last synced: about 1 year ago
JSON representation
A CLI tool to translate text via web translation service.
- Host: GitHub
- URL: https://github.com/thinca/wtrans
- Owner: thinca
- License: zlib
- Created: 2017-11-23T12:38:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T02:35:18.000Z (over 4 years ago)
- Last Synced: 2025-03-27T00:54:56.604Z (about 1 year ago)
- Topics: cli, translation
- Language: JavaScript
- Size: 522 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# wtrans
[![NPM Version][npm-image]][npm-url]
[![Node.js Version][node-version-image]][node-version-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][codecov-image]][codecov-url]
A CLI tool to translate text via web translation service.
## Requirements
- Node.js v10.18.1+
- This is required by [Puppeteer](https://pptr.dev/)
## Installation
Install it using [npm](https://www.npmjs.com/):
```
$ npm install -g wtrans
```
## Synopsis
First of all, you must write and put a config file. See [wtrans.yaml manual](manual/wtrans.yaml.5.md) for detail.
```sh
# Translates argument text
$ wtrans Hello
こんにちは
# Translates stdin text
$ echo Hello | wtrans
こんにちは
# Detects input text language by its whether multibyte character or not
$ wtrans こんにちは
Hello
```
See also:
- [wtrans command manual](manual/wtrans.1.md)
- [wtrans.yaml manual](manual/wtrans.yaml.5.md)
## License
[zlib License](LICENSE.txt)
## Author
thinca
[npm-image]: https://img.shields.io/npm/v/wtrans.svg
[npm-url]: https://npmjs.org/package/wtrans
[node-version-image]: https://img.shields.io/node/v/wtrans.svg
[node-version-url]: https://nodejs.org/en/download/
[travis-image]: https://travis-ci.com/thinca/wtrans.svg?branch=master
[travis-url]: https://travis-ci.com/thinca/wtrans
[codecov-image]: https://codecov.io/gh/thinca/wtrans/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/thinca/wtrans