How to Install and Use cli-dict: A Command-Line Translation Tool
This guide explains how to install the cli-dict npm package globally, demonstrates basic Chinese‑English translation commands with examples, lists available command‑line options, and notes the current translation source and contribution invitation.
Installation
$ npm install cli-dict -gUsage
Supports Chinese‑English translation.
Example
$ dict hello world
> 你好世界
$ dict 然
> conj. but; however
adj. right
vt. correct
adv. so; neverthelessOptions
$ dict -h
Usage: index [options]
Options:
-V, --version output the version number
-s, --source <name> 指定翻译源
-h, --help output usage informationOther
Current translation source is Youdao.
Feel free to fork or star the project.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
JavaScript
Provides JavaScript enthusiasts with tutorials and experience sharing on web front‑end technologies, including JavaScript, Node.js, Deno, Vue.js, React, Angular, HTML5, CSS3, and more.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
