Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 629 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 629 Bytes

urban

The Urban Dictionary has a JSON API which can be easily accessed via URLs like this: http://api.urbandictionary.com/v0/define?term=kvlt

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