Skip to content

DomenicF/dict-cli-en

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dict-cli-en

A command-line dictionary.

A very simple command-line dictionary that uses the Oxford Dictionary API. My goal is to re-discover Node and learn about ES-whatever-version-we're-on, along with command line applications in general. There are other dictionary tools out there that do the same thing and this one probably isn't as good as those -- this is strictly a learning project.

At the moment, I just wanted to get up and running and see how the API works so the code is a bit rudimentary.

Installation

OS X & Linux:

npm install dict-cli-en --global

After that, obtain your API credentials from https://developer.oxforddictionaries.com/.

Next, navigate to your /usr/lib/node_modules/dict-cli-en directory and copy the .env.example file to .env and fill in your credentials.

Usage example

$ dict tree
Etymology: Old English trēow, trēo: from a Germanic variant of an Indo-European root shared by Greek doru ‘wood, spear’, drus ‘oak’

Definitions:
        • a woody perennial plant, typically having a single stem or trunk growing to a considerable height and bearing lateral branches at some distance from the ground.
        • a wooden structure or part of a structure.
        • a thing that has a branching structure resembling that of a tree.

Release History

  • 1.0.1
    • Added .env.example file.
  • 1.0.0
    • First release.

Meta

Domenic Fiore – domenicfiore@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/domenicf

Contributing

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request