Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tharunoptimus/endict
Command Line English Dictionary - Source Code of the npm package endict
https://github.com/tharunoptimus/endict
cli cli-color console window-size yargs
Last synced: about 2 months ago
JSON representation
Command Line English Dictionary - Source Code of the npm package endict
- Host: GitHub
- URL: https://github.com/tharunoptimus/endict
- Owner: tharunoptimus
- Created: 2021-08-19T07:25:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T12:30:25.000Z (over 3 years ago)
- Last Synced: 2024-04-29T17:20:53.863Z (8 months ago)
- Topics: cli, cli-color, console, window-size, yargs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/endict
- Size: 8.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CMD line English Dictionary
## Install
`npm install -g endict`## Usage
`dict word`
### Example
```js
// In the terminal
dict happy
```### Output
![](https://raw.githubusercontent.com/tharunoptimus/endict/main/output.png)
## Dependencies
- [clear-any-console](https://www.npmjs.com/package/clear-any-console) To clear the console before the output
- [cli-color](https://www.npmjs.com/package/cli-color) For colorizing the output
- [window-size](https://www.npmjs.com/package/window-size) To get the size of the terminal
- [word-wrap](https://www.npmjs.com/package/word-wrap) To word wrap the output
- [yargs](https://www.npmjs.com/package/yargs) To parse the arguments## Note
- This cli is not meant for production use. It is a learning tool to know about words and their meanings.
- The dictionary.json file is used from [here](https://github.com/matthewreagan/WebstersEnglishDictionary/blob/master/dictionary.json)## Enjoy 🎉