https://github.com/panther-js/udcli
A nodejs urban dictionary cli.
https://github.com/panther-js/udcli
client urban-dictionary
Last synced: about 1 year ago
JSON representation
A nodejs urban dictionary cli.
- Host: GitHub
- URL: https://github.com/panther-js/udcli
- Owner: panther-js
- Created: 2016-04-14T19:48:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-06T23:03:38.000Z (over 7 years ago)
- Last Synced: 2025-05-11T18:38:54.808Z (about 1 year ago)
- Topics: client, urban-dictionary
- Language: JavaScript
- Size: 126 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# udcli
[](https://travis-ci.org/panther-js/udcli)
[](https://greenkeeper.io/)
A nodejs urban dictionary cli.
### Install
```console
npm install udcli -g
```
#### Example
```console
$ udcli lgtm
An acronym for "Looks Good To Me", often used as a quick response after reviewing someone's essay,
code, or design document.
```
#### Full source code:
```js
#! /usr/bin/env node
if (process.argv.length === 3) {
require('roi')
.get({ endpoint: `http://api.urbandictionary.com/v0/define?term=${process.argv[2]}` })
.then(response => console.log(JSON.parse(response.body).list[0].definition))
.catch(console.log);
} else {
console.log('Usage: node index search_term_here');
}
```