{"id":19177273,"url":"https://github.com/liuxing/translator-cli","last_synced_at":"2025-05-07T20:40:54.381Z","repository":{"id":57379199,"uuid":"133327894","full_name":"liuxing/translator-cli","owner":"liuxing","description":"The command line app for translate.","archived":false,"fork":false,"pushed_at":"2018-05-27T02:18:13.000Z","size":231,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T23:07:18.021Z","etag":null,"topics":["cli","fanyi","translation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liuxing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-14T08:17:54.000Z","updated_at":"2024-04-08T08:32:57.000Z","dependencies_parsed_at":"2022-09-02T20:22:26.631Z","dependency_job_id":null,"html_url":"https://github.com/liuxing/translator-cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuxing%2Ftranslator-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuxing%2Ftranslator-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuxing%2Ftranslator-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuxing%2Ftranslator-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuxing","download_url":"https://codeload.github.com/liuxing/translator-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954128,"owners_count":21830893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","fanyi","translation"],"created_at":"2024-11-09T10:32:44.033Z","updated_at":"2025-05-07T20:40:54.360Z","avatar_url":"https://github.com/liuxing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# translator-cli\n\n[![Travis](https://www.travis-ci.org/liuxing/translator-cli.svg?branch=master)](https://www.travis-ci.org/liuxing/translator-cli)  [![npm version](https://img.shields.io/npm/v/translator-cli.svg)](https://www.npmjs.com/package/translator-cli) [![npm downloads](https://img.shields.io/npm/dm/translator-cli.svg)](https://www.npmjs.com/package/translator-cli) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n\u003e The command line app for translate\n\n## Install\n\n```bash\n$ npm install -g translator-cli\n```\n\n## Features\n\n- translates words, phrases between English and Chinese\n- easy and fast switch between different API (e.g. youdao、iciba)\n\n## Usage\n\n```bash\n$ translator\n\n  Usage: translator [options] [command]\n\n  Options:\n\n    -V, --version    output the version number\n    -h, --help       output usage information\n\n  Commands:\n\n    *                Query words\n    query|q \u003cwords\u003e  Query words\n    ls               List all the source\n    use \u003csource\u003e     Change source to source\n```\n\nOf course, you can also use `fanyi` or `fy `  like:\n\n```bash\n$ fanyi\n# ···\n# or\n$ fy\n# ...\n```\n\n### Query words\n```bash\n$ fy \u003cwords\u003e\n# e.g.\n$ fy test # or: fy query test、fy q test\ntest  [ test ]    ~ fanyi.youdao.com\n\n- n. 试验；检验\n- vt. 试验；测试\n- vi. 试验；测试\n- n. (Test)人名；(英)特斯特\n\n1. Test\n     测试,测验,检验\n\n2. Test Drive\n     Test Drive,Test Drive,无限狂飙\n\n3. Test Engineer\n     测试员,测试工程师,软件测试工程师\n```\n\n### Change source\n\nList all the source\n```bash\n$ fy ls\n*  youdao  -\u003e http://fanyi.youdao.com\n   iciba  -\u003e http://dict-co.iciba.com\n```\n\nChange source to source\n```bash\n$ fy use iciba\nsource has been set to: iciba\n```\n\n## LICENSE\n[MIT](https://github.com/liuxing/translator-cli/blob/master/LICENSE) @ Liu Xing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuxing%2Ftranslator-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuxing%2Ftranslator-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuxing%2Ftranslator-cli/lists"}