{"id":16293999,"url":"https://github.com/axetroy/translate-cli","last_synced_at":"2025-04-09T11:15:14.990Z","repository":{"id":143735152,"uuid":"84582580","full_name":"axetroy/translate-cli","owner":"axetroy","description":"A cli tool for translate text in terminal.","archived":false,"fork":false,"pushed_at":"2019-04-08T12:56:19.000Z","size":14,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T13:47:45.927Z","etag":null,"topics":["cli","cli-app","nodejs","translate"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@axetroy/translate-cli","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/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-10T17:05:36.000Z","updated_at":"2023-02-13T21:25:36.000Z","dependencies_parsed_at":"2023-06-03T12:00:10.683Z","dependency_job_id":null,"html_url":"https://github.com/axetroy/translate-cli","commit_stats":null,"previous_names":["axetroy/translate-pipe"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ftranslate-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ftranslate-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ftranslate-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ftranslate-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/translate-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027412,"owners_count":21035594,"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","cli-app","nodejs","translate"],"created_at":"2024-10-10T20:13:46.916Z","updated_at":"2025-04-09T11:15:14.961Z","avatar_url":"https://github.com/axetroy.png","language":"JavaScript","readme":"## translate-cli\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/translate-cli.svg)](https://greenkeeper.io/)\n\nA cli tool for translate text in terminal.\n\nUse Baidu Translate API.\n\n### Installation\n\n```bash\nnpm install @axetroy/translate-cli -g\n```\n\n### Usage\n\n```\n$ translate -h\n\n  Usage: translate [content] [options]\n\n  Options:\n\n    -h, --help         output usage information\n    -V, --version      output the version number\n    -f, --from \u003clang\u003e  From Language, short locale name, like: en,zh,jp\n    -t, --to \u003clang\u003e    To Language, short locale name, like: en,zh,jp\n```\n\n```bash\n$ translate\n# translate REPL, will translate automatically, just need you type word then [Enter]\n\n$ translate 你好世界\n# output \u003e\u003e\u003e Hello world\n\n# or you can reverse it\n\n$ translate Hello world\n# output \u003e\u003e\u003e 你好世界\n\n# or you can use stream pipe\n\n$ cat ./test\n# output \u003e\u003e\u003e Hello world\n$ cat ./test | translate\n# output \u003e\u003e\u003e 你好世界\n```\n\n### Contribute\n\n```bash\n$ git clone https://github.com/axetroy/translate-cli.git\n$ cd ./translate-cli\n$ yarn\n$ ./bin/translate-cli hello world\n```\n\nYou can flow [Contribute Guide](https://github.com/axetroy/translate-cli/blob/master/contributing.md)\n\n## License\n\nThe [MIT License](https://github.com/axetroy/translate-cli/blob/master/LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Ftranslate-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Ftranslate-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Ftranslate-cli/lists"}