node package manager

urban

Simple API and command line for Urban Dictionary

urban

The Urban Dictionary program and library for node.js. The API is official, but undocumented.

$ npm install -g urban # bin
$ npm install urban # lib
$ urban facepalm
$ urban -r // random mode
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);
});

MIT