Skip to content

command line dictionary built with node and wordnik api

Notifications You must be signed in to change notification settings

crk2904/node-dict

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 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 key/key.js as

module.exports = "value";

This is done to include key.js in .gitignore so that the key value is not pushed into public repos by mistake.

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%