{"id":22305602,"url":"https://github.com/keenwon/eazydict","last_synced_at":"2025-10-17T04:14:41.954Z","repository":{"id":23368474,"uuid":"95007793","full_name":"keenwon/eazydict","owner":"keenwon","description":"简单易用的命令行词典 :closed_book: :orange_book: :green_book: :blue_book: :notebook:","archived":false,"fork":false,"pushed_at":"2025-02-20T02:20:39.000Z","size":5076,"stargazers_count":115,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-11T15:35:56.016Z","etag":null,"topics":["bing","cli","console","dict","dictionary","google-translate","terminal","youdao"],"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/keenwon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-21T13:35:39.000Z","updated_at":"2025-10-07T09:59:41.000Z","dependencies_parsed_at":"2024-06-17T04:25:30.027Z","dependency_job_id":"c3405293-5ece-4492-9e1c-baceab3bf42d","html_url":"https://github.com/keenwon/eazydict","commit_stats":{"total_commits":423,"total_committers":5,"mean_commits":84.6,"dds":0.5673758865248226,"last_synced_commit":"0cab2197bac3fd76e40151d017ecd7e29355a10c"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/keenwon/eazydict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenwon%2Feazydict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenwon%2Feazydict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenwon%2Feazydict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenwon%2Feazydict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keenwon","download_url":"https://codeload.github.com/keenwon/eazydict/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenwon%2Feazydict/sbom","scorecard":{"id":553540,"data":{"date":"2025-08-11","repo":{"name":"github.com/keenwon/eazydict","commit":"3beea1356275a38216f6611a336543d595433325"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unittest.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/keenwon/eazydict/unittest.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unittest.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/keenwon/eazydict/unittest.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/unittest.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/keenwon/eazydict/unittest.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/unittest.yml:27","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/unittest.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T11:40:08.176Z","repository_id":23368474,"created_at":"2025-08-20T11:40:08.176Z","updated_at":"2025-08-20T11:40:08.176Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279208942,"owners_count":26126695,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bing","cli","console","dict","dictionary","google-translate","terminal","youdao"],"created_at":"2024-12-03T19:12:23.836Z","updated_at":"2025-10-17T04:14:41.922Z","avatar_url":"https://github.com/keenwon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EazyDict\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][github-actions-image]][github-actions-url]\n[![License][license-image]][license-url]\n[![Lgtm Alerts][lgtm-alerts-image]][lgtm-alerts-url]\n[![Lgtm Grade][lgtm-grade-image]][lgtm-grade-url]\n\n简单易用的命令行词典，基于 Node 开发。支持 Linux、Mac（部分功能支持 Windows）\n\n主要功能：\n\n- 中英互译\n- 输出翻译、音标、例句，并且可自由配置\n- 支持以插件形式集成词典，默认包含: [Google](http://github.com/keenwon/eazydict-google), [Bing](http://github.com/keenwon/eazydict-bing), [Youdao](http://github.com/keenwon/eazydict-youdao)\n- 本地缓存，可设置缓存时长\n- 历史记录\n- 生词本\n- 支持代理（需要插件支持，内置的Google、Bing、Youdao插件已实现代理功能）\n- 可查询程序状态：累计查询次数，生词个数等\n- 更新提示：使用过程中会自动检测更新，并输出提示\n\n效果图:\n\n\u003ccenter\u003e\n  \u003cimg src=\"docs/images/screenshot.gif\"\u003e\n\u003c/center\u003e\n\n目录:\n\u003c!-- TOC --\u003e\n\n- [环境](#环境)\n- [安装](#安装)\n- [运行](#运行)\n- [插件](#插件)\n- [配置文件](#配置文件)\n- [本地缓存](#本地缓存)\n- [DEBUG模式](#debug模式)\n- [本地数据的备份与恢复](#本地数据的备份与恢复)\n- [ChangeLog](#changelog)\n- [License](#license)\n\n\u003c!-- /TOC --\u003e\n\n## 环境\n\n运行 EazyDict 需要：\n\n- Node ( **v8+** )\n- NPM\n\n安装方法请查看 Node 官网：[https://nodejs.org/](https://nodejs.org/)\n\n## 安装\n\n使用 npm 安装，执行：\n\n```shell\nnpm i -g eazydict\n```\n\n当然也可以使用 [yarn](https://yarnpkg.com)：\n\n```shell\nyarn global add eazydict\n```\n\n\u003e 注意：因为依赖了 node-sqlite3，会直接根据你的系统下载预编译版本，可能会比较慢，安装时可以添加 `--verbose` 查看详情。\n\u003e\n\u003e ```shell\n\u003e npm i -g eazydict --verbose\n\u003e ```\n\u003e 安装的相关详细信息可以查看: [link](https://github.com/mapbox/node-sqlite3#installing)\n\n## 运行\n\n直接执行 `eazydict` 或者 `eazydict --help` 可以看到详细的帮助信息：\n\n```shell\n$ eazydict --help\n\n  Usage: eazydict \u003cwords...\u003e\n\n  简单易用的命令行词典 https://github.com/keenwon/eazydict\n\n\n  Options:\n\n    -s, --save  查询单词，同时保存到生词本\n    -r, --raw   不转换为小写，查询原始的输入值\n    -h, --help  output usage information\n\n\n  Commands:\n\n    lookup|l [options] \u003cwords...\u003e  查询 words 的翻译\n    version|v                      版本信息\n    history|h [count]              显示最近查询的历史记录\n    save|s                         保存上一次查询的单词、短语到生词本\n    install|i \u003cplugin-name\u003e        安装插件\n    wordbook|w                     打开生词本\n    status                         显示统计信息\n\n  Examples:\n\n    查询短语 \"fly in sky\"：\n    $ eazydict fly in sky\n    $ eazydict lookup fly in sky\n    $ eazydict l fly in sky\n\n    查询短语 \"hello\"，同时保存到生词本：\n    $ eazydict --save hello\n    $ eazydict -s hello\n\n    查看历史记录：\n    $ eazydict history\n    $ eazydict h\n\n    保存上一次查询的单词、短语到生词本：\n    $ eazydict save\n    $ eazydict s\n\n    打开生词本：\n    $ eazydict wordbook\n    $ eazydict w\n\n    安装插件\"eazydict-example\":\n    $ eazydict i eazydict-example\n    $ eazydict install eazydict-example\n\n    查看 EazyDict 版本信息:\n    $ eazydict version\n    $ eazydict v\n```\n\n## 插件\n\n- [eazydict-google](http://github.com/keenwon/eazydict-google) (默认包含，无需安装)\n- [eazydict-bing](http://github.com/keenwon/eazydict-bing) (默认包含，无需安装)\n- [eazydict-youdao](http://github.com/keenwon/eazydict-youdao) (默认包含，无需安装)\n\n如果你有兴趣开发更多的插件，可以参考文档: [EazyDict 插件开发](./docs/plugins.md)\n\n## 配置文件\n\nEazyDict 第一次运行的时候，会自动生成配置文件 .eazydict.yml 到用户的的 [Home](https://nodejs.org/api/os.html#os_os_homedir) 目录下。你可以根据自己的需求修改配置。参考 [.eazydict.yml](https://github.com/keenwon/eazydict/blob/master/.eazydict.yml)\n\n## 本地缓存\n\nEazyDict 会缓存你的查询过的单词。缓存使用 Sqlite，数据库文件在 `${home}/.eazydict/databasae.sqlite`\n\n## DEBUG模式\n\n当程序运行异常时（例如和你的配置文件不符），可以使用 DEBUG 模式查看更多信息\n\n```shell\nDEBUG=eazydict:core:* eazydict love\n```\n\n同样也可以单独查看插件的 DEBUG 信息，具体参数可以查看各插件文档 \u0026 源码\n\n## 本地数据的备份与恢复\n\n原则上本地的数据只是缓存，使用过程中完全不用在意。但是如果你希望对数据进行备份，可以直接操作 `${home}/.eazydict/databasae.sqlite` 文件\n\n- 备份：直接备份 `database.sqlite` 文件\n- 恢复：将备份的文件放在 `${home}/.eazydict/` 目录\n- 删除：直接删除 `database.sqlite` 文件\n\n## ChangeLog\n\nsee [CHANGELOG.md](./CHANGELOG.md)\n\n## License\n\nMIT.\n\n[npm-image]: https://img.shields.io/npm/v/eazydict.svg?maxAge=3600\n[npm-url]: https://www.npmjs.com/package/eazydict\n[github-actions-image]: https://github.com/keenwon/eazydict/workflows/unittest/badge.svg\n[github-actions-url]: https://github.com/keenwon/eazydict/actions\n[license-image]: https://img.shields.io/npm/l/eazydict.svg?maxAge=3600\n[license-url]: https://github.com/keenwon/eazydict/blob/master/LICENSE\n[lgtm-alerts-image]: https://img.shields.io/lgtm/alerts/g/keenwon/eazydict.svg?logo=lgtm\u0026logoWidth=18\u0026maxAge=3600\n[lgtm-alerts-url]: https://lgtm.com/projects/g/keenwon/eazydict/alerts/\n[lgtm-grade-image]: https://img.shields.io/lgtm/grade/javascript/g/keenwon/eazydict.svg?logo=lgtm\u0026logoWidth=18\u0026maxAge=3600\n[lgtm-grade-url]: https://lgtm.com/projects/g/keenwon/eazydict/context:javascript","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenwon%2Feazydict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeenwon%2Feazydict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenwon%2Feazydict/lists"}