Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mvrilo/urban

Command line tool and API for the Urban Dictionary
https://github.com/mvrilo/urban

command-line javascript nodejs urban urban-dictionary

Last synced: 13 days ago
JSON representation

Command line tool and API for the Urban Dictionary

Awesome Lists containing this project

README

        

# urban

The [Urban Dictionary](https://www.urbandictionary.com/) program and library for [node.js](https://nodejs.org/). The API is official, but undocumented.

### installation

$ npm install -g urban # bin
$ npm install urban # lib

### examples

#### bin
$ urban facepalm
$ urban -r // random mode

#### lib
var urban = require('urban'),
trollface = urban('trollface');

trollface.first(function(json) {
console.log(json);
});


// Random mode
var urban = require('urban');

urban.random().first(function(json) {
console.log(json);
});

### license

MIT