Skip to content

tarunvelli/node-dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requiremnets

  • node.js
  • npm
  • unix/linux*

Has not been tested on windows, some features such as installing as global command, shorthand of ./dict.js etc. might not work on windows.

SETUP

Clone repo (or Download)

git clone "https://github.com/tarunvelli/node-dict.git"

Enter the directory

cd node-dict

Install the dependencies

npm install

Enter your api key in .env as

WORDNIK_API_KEY=xxxxx

USAGE

To run from within the node-dict directory with shorthand

Recommended for testing

./dict.js syn word

OR

To install as a global command

For permanent use, installs the script as a global command to execute from any dir in the terminal with the command "node-dict"

to link

sudo npm link

to run

node-dict syn word

OR

Run using node

Should be in the node-dict directory

node dict syn word

DOCS

The examples here are run using node dict in the node-dict directory

  • Definitions

Get definitions of a word

node dict def word
  • Synonyms

To get synonyms of a word

node dict syn word
  • Antonyms

Get antonyms of a word

node dict ant word
  • Examples

Get examples of a word

node dict ex word
  • All related info

Get all the related info of a word, in order of : - definitions, synonyms, antonyms and examples

node dict dict word
  • Word of the day

Get all the related info of the word of the day, i.e. definitions, synonyms, antonyms and examples

node dict
  • Play game

Play a word guessing game

node dict play

Made with wordnik api

About

command line dictionary built with node and wordnik api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published