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.
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.
$ 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.
- 1.0.1
- Added .env.example file.
- 1.0.0
- First release.
Domenic Fiore – domenicfiore@gmail.com
Distributed under the MIT license. See LICENSE
for more information.
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request