dict-cli-en
v1.0.2
Published
A command-line dictionary. Currently broken.
Downloads
5
Readme
dict-cli-en
NOTE: This package is broken.
I'm not sure when I will have time to fix it. It relied on v1 of the Oxford Dictionary API and it seems as if Oxford has deprecated it and only allows v2 now, which is not part of their free tier. I will need to switch to another dictionary/API entirely.
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.2
- Updated the README to show that the package does not work at the moment. Upgraded packages, because why not.
- 1.0.1
- Added .env.example file.
- 1.0.0
- First release.
Meta
Domenic Fiore – [email protected]
Distributed under the MIT license. See LICENSE
for more information.
Contributing
- 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