https://github.com/gravityblast/wordreference-cli
simple wordreference.com CLI
https://github.com/gravityblast/wordreference-cli
Last synced: about 1 year ago
JSON representation
simple wordreference.com CLI
- Host: GitHub
- URL: https://github.com/gravityblast/wordreference-cli
- Owner: gravityblast
- License: mit
- Created: 2013-06-06T02:02:55.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-06T17:16:50.000Z (almost 13 years ago)
- Last Synced: 2025-04-12T04:09:18.813Z (about 1 year ago)
- Language: CoffeeScript
- Size: 121 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wordreference-cli
===================
Simple wordreference CLI
Clone this repository and install the package:
git clone git@github.com:pilu/wordreference-cli.git
cd wordreference-cli
Compile the coffeescript sources:
coffee -o lib -c src/
Install the package:
npm install -g .
In your profile file export your wordreference.com API KEY:
export WORDREFERENCE_API_KEY=YOUR_API_KEY
If you usually use the same dictionary, create a function like this in your profile file:
function wr { wordreference enit $1 | less; }
Now from your terminal run:
wr hello
You should see something like this:
HELLO (enit)
hello [interj] (greeting)
salve, buongiorno, buonasera [interiez]
ciao [interiez] (informale)
hello [n] (greeting, utterance of hello)
ciao, salve [inter]
hello [n] (a greeting)
saluto [nm]
© WordReference.com
(END)