An English-Chinese dictionary, both cli and a node module.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.editorconfig
.gitignore
LICENSE
README.md
index.js
package.json
screenshot.png

README.md

dict-en-zh

An English-Chinese dictionary, both cli and a node module.

screenshot

Install

$ npm install dict-en-zh

CLI

dict <word> [options]

to get help information, use dict -h or dict --help.

Module

const dict = require('dict-en-zh')

dict('echo').then(console.log).catch(console.trace)

API

  • dict(word[, source='shanbay']) , which is identical to dict[source](word)
  • dict.shanbay(word)
  • dict.youdao(word)

License

MIT