Skip to content

Get description of any word from merriam-webster on your CLI, in nice format!

License

Notifications You must be signed in to change notification settings

fosslife/define

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Define

a small cli tool that uses merriam-webster API to get the meaning of a word. this tool doesn't scrape, it uses API so you'll need your own API key to work, it's fairly easy to get one.

Get API key:

go to (dictionaryapi.com)[https://dictionaryapi.com/register/index] fill in the basic information you need, here Request API key (1) will be Collegiage Dictionary. (2) can be anything we just need (1). And after that you should receive your KEY. export it like

export DICTIONARY_KEY="1234-1234-1234-etc"

or set in your .bashrc or .zshrc etc.

Installation

if you have cargo installed, just run

cargo install --git https://github.com/fosslife/define

if you have cloned the repo locally you can also run

cargo install --path .

Usage

defrs {word}

example:

$ defrs humanity
hu*man*i*ty | hyü-ˈma-nə-tē

Definition of humanity:
    + compassionate, sympathetic, or generous behavior or disposition : the quality or state of being humane
    + the quality or state of being human
    + human attributes or qualities

Screenshots

Image One

Image Two

License

This project is licensed under MIT

About

Get description of any word from merriam-webster on your CLI, in nice format!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages