GithubHelp home page GithubHelp logo

kenshinji / yddict Goto Github PK

View Code? Open in Web Editor NEW
376.0 8.0 66.0 507 KB

一个命令行查单词的工具💻 📚

License: MIT License

JavaScript 100.00%
dictionary nodejs npm-package hacktoberfest hacktoberfest2022

yddict's Introduction

有道词典命令行查询工具 English

不喜欢安装有道词典的应用程序,因为太耗资源还一堆广告,但是用浏览器打开dict.youdao.com也挺麻烦的,不是吗?快来试试我的有道词典命令行工具吧!

GitHub stars MIT licensed npm version Code Climate Build Status Coverage Status FOSSA Status

gif with examples

安装

npm install yddict -g

使用说明

yd <要查询的单词>
  • 自定义设置

目前自定义设置选项如下,可以通过用户主目录下.config/configstore/yddict.json文件来配置, 如果没有该文件,第一次运行之后会自动生成。

{
  "proxy":"http://<主机地址>:<端口>" //代理设置
  "color":"<自定义显示颜色>" //自定义字体颜色显示,默认白色
}

如何贡献代码

  1. fork这个代码库。
  2. npm install 安装所需要的依赖。
  3. 代码改动之后请运行npm test确保你的改动没有影响到其他的部分。
  4. PR.

参与讨论

  1. Telegram 群

请作者喝一杯咖啡

Buy Me A Coffee

yddict's People

Contributors

doctorlai avatar easonjim avatar eryouhao avatar kenshinji avatar yeungkc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yddict's Issues

配置文件应该为更有意义的名字

工作不错。看代码配置文件的名字为config.js,直接放在了用户的主目录下了,这样会导致别的程序的冲突,所以建议应该放在子目录下或者改为更有意义的名字

issue command `yd` without any argument will return weird response.

Problem Summary

issue command yd without any argument will return weird response.

How to reproduce

yd and return will get response like below

[,i ɛn 'dʒi] Mike Eng 伍国庆 Eng Time 英伦时光 Eng Mode 工程师模式 ; 工程模式 ; 不懂就没有测试了 ; 发动机方式 eng oil 油踯恰及食物局 ; 英文油 ; 英石油 Installation Eng 安装工程师 BSc Eng 工学士 ENG FIRE 发动机火警 ENG Engine 发动机 ; 引擎 eng me 月下夜想曲

Environment

  • OS version: OS X v10.13.3
  • Node version: v8.9.4
  • Npm version: v5.6.0
  • yddict version: v1.1.0

添加音标

Problem Summary

希望英文单词可以添加音标

How to reproduce

Environment

  • OS version:
  • Node version:
  • Npm version:
  • yddict version:

A few improvements

  • Add Code of Conduct.
  • Add How to Contribute section in README.
  • Add unit tests and lint tool, and hooks for git.
  • Add Pull Request Template.

报错了

C:\Users\daixiansen\AppData\Roaming\npm\node_modules\yddict>yd hello
C:\Users\daixiansen\AppData\Roaming\npm\node_modules\yddict\index.js:12
let word = process.argv.slice(2).join(' ')
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.