{"id":16293748,"url":"https://github.com/zhaoqize/easy-dict","last_synced_at":"2025-07-07T05:02:23.343Z","repository":{"id":57218392,"uuid":"141701993","full_name":"zhaoqize/easy-dict","owner":"zhaoqize","description":"🤓 一个命令行词典","archived":false,"fork":false,"pushed_at":"2018-08-07T08:46:15.000Z","size":1424,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T05:50:24.054Z","etag":null,"topics":["cool","dictionaries","nodejs","puppeteer","tools","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/zhaoqize.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-07-20T11:04:56.000Z","updated_at":"2024-02-19T22:40:39.000Z","dependencies_parsed_at":"2022-08-28T21:41:05.085Z","dependency_job_id":null,"html_url":"https://github.com/zhaoqize/easy-dict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhaoqize/easy-dict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Feasy-dict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Feasy-dict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Feasy-dict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Feasy-dict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaoqize","download_url":"https://codeload.github.com/zhaoqize/easy-dict/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Feasy-dict/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264016713,"owners_count":23544623,"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":["cool","dictionaries","nodejs","puppeteer","tools","translation"],"created_at":"2024-10-10T20:12:15.518Z","updated_at":"2025-07-07T05:02:23.324Z","avatar_url":"https://github.com/zhaoqize.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/easy-dict.svg?style=flat)](https://github.com/zhaoqize/easy-dict)\n[![GitHub license](https://img.shields.io/github/license/zhaoqize/easy-dict.svg)](https://github.com/zhaoqize/easy-dict/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]()\n# easy-dict\neasy-dict 是一个可以直接在命令行界面中 **操作** 的词典\n\n\u003e 词库来源于 google 和 有道\n\n\n### 安装\n```js\nnpm install -g easy-dict\n```\n\n### 使用\n\n它有两种使用方式\n\n#### 1、命令行界面操作 （推荐✨）\n\u003cimg src=\"./lib/img/2-2.png\" width=\"400\"\u003e\n\n\u003cimg src=\"./lib/img/3-3.png\" width=\"400\"\u003e\n\n\u003cimg src=\"./lib/img/4-4.png\" width=\"400\"\u003e\n\n**界面主要分为**\n\n- 操作区：在这里输入你想要翻译的内容（支持复制）\n  \u003e 想要输入的时候：点击键盘上的 i 键位，启动输入模式\n- 搜索按钮：点击后进行翻译\n- 输入区：显示你要翻译的内容\n- 输出区：显示翻译后的结果\n- 其他区：显示词汇的定义（动词，名次等）的造句\n- 更多内容区：显示词汇的其他解释\n\n#### 在通过命令行操作\n1、默认使用 `youdao` 翻译\n```js\neasy dict \u003cword\u003e\n```\n\n2、使用 `google` 词典\n```js\neasy dict \u003cword\u003e -s google\n```\n\n3、翻译英文单词\n```js\neasy dict question\n```\n\n4、翻译英文句子\n```js\neasy dict 'question is a question'\n```\n\n5、翻译中文单词\n```js\neasy dict 中国\n```\n\n6、翻译中文句子\n```js\neasy dict '我是中国人'\n```\n\n\n执行 `easy dict -h`\n```js\n  Usage: dict [options] \u003cword\u003e\n\n  A Tool For Translaion\n\n  Options:\n\n    -s, --source \u003cname\u003e  default youdao, where is the source for dict\n    -h, --help           output usage information\n```\n\n### TODO\n- [ ] - 优化内容显示\n- [ ] - 提高字典的稳定性\n- [ ] - 提供界面皮肤自定义\n\n### 如何贡献\n1.拥有 GitHub 账户 (如果你还没有)\n\n2.Fork 这个仓库\n\n3.在你克隆的仓库上进行修改\n\n4.提交一个 PR。\n\n### License\n\nMIT © [zhaoqize]()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaoqize%2Feasy-dict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaoqize%2Feasy-dict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaoqize%2Feasy-dict/lists"}