https://github.com/josephuspaye/lookup-cli
Look up definitions, synonyms, and related words from online sources on the command line.
https://github.com/josephuspaye/lookup-cli
cli-app createweekly dictionary nodejs thesaurus
Last synced: 7 months ago
JSON representation
Look up definitions, synonyms, and related words from online sources on the command line.
- Host: GitHub
- URL: https://github.com/josephuspaye/lookup-cli
- Owner: JosephusPaye
- License: mit
- Created: 2020-10-19T10:17:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-01T11:18:15.000Z (almost 5 years ago)
- Last Synced: 2025-02-21T03:48:00.710Z (8 months ago)
- Topics: cli-app, createweekly, dictionary, nodejs, thesaurus
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lookup CLI
📖 Look up definitions, synonyms, and related words from online sources on the command line. The current available source is [WordWeb Online](https://wordwebonline.com).
This project is part of [#CreateWeekly](https://twitter.com/JosephusPaye/status/1214853295023411200), my attempt to create something new publicly every week in 2020.
## Installation
```bash
npm install -g @josephuspaye/lookup-cli
```## Examples
### Look up definitions
The following command looks up definitions of the word "reticent":
```bash
lookup reticent
```And yields the following output when ran:
View output
```
Looking up "reticent"...Adjective: reticent
1. Temperamentally disinclined to talk
- untalkative2. Cool and formal in manner
- restrained, unemotional3. Reluctant to draw attention to yourself
- self-effacing, retiringSee also: taciturn, unassertive, undemonstrative
```### Look up definitions with related words
When looking up definitions, you can choose to include related words in the following categories:
- `soundsLike`
- `derivedForms`
- `seeAlso`
- `partOf`
- `typeOf`
- `antonyms`
- `all` (include all related words)The following commands finds definitions and `soundsLike`, `derivedForms`, `typeOf`, and `partOf` relations for the word "bee":
```bash
lookup bee -i soundsLike,derivedForms,typeOf,partOf
```And yields the following output when ran:
View output
```
Looking up "bee"...Noun: bee
1. Any of numerous hairy-bodied insects including social and solitary species
2. A social gathering to carry out some communal task or to hold competitions
Sounds like: be, B
Derived forms: bees
Type of: hymenopter, hymenopteran, hymenopteron, hymenopterous insect, social affair, social gathering
Part of: Apoidea, superfamily Apoidea
```## Usage
```bash
lookup --help
``````
Description
Find definitions, synonyms, and related words for the given word.Usage
$ lookup [options]Options
-i, --include Include related words: one or more of `soundsLike`, `derivedForms`, `seeAlso`, `typeOf`, `partOf`, or `antonyms`, separated by a comma, or `all` (default derivedForms,seeAlso,antonyms)
-v, --version Displays current version
-h, --help Displays this messageExamples
$ lookup flag
$ lookup flag -i derivedForms,seeAlso,antonyms
```## Licence
[MIT](LICENCE)