npm.io
0.3.4 • Published 4 years agoCLI

urban

Licence
MIT
Version
0.3.4
Deps
1
Size
7 kB
Vulns
0
Weekly
0
Stars
135

urban

The Urban Dictionary program and library for node.js. 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

Keywords