Project

ud

0.0
No commit activity in last 3 years
No release in over 3 years
Get words' definitions from Urban Dictionary on the command-line.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8
~> 12.3
~> 0.18
~> 3.3
~> 3.8

Runtime

~> 0.0
 Project Readme

ud

Gem Version Coverage Status Inline docs

ud is a command-line tool for the Urban Dictionary.

Example

$ ud dafuq
* dafuq (11644/4888):

    [what the fuck] , but in a more confused manner

 Example:
    Hagrid: You're a wizard Harry
    Harry: Dafuq?

Install

gem install ud

Windows users: You will need the Win32 Console ANSI gem for the colored output. Install it with gem install win32console.

Usage

From the command-line:

$ ud <word>

It supports a few options:

  • -n, --count: maximum number of definitions (default: 1)
  • -m, --random: print a random definition instead
  • --no-color: disable colored output.
  • -b, --browser: open the results in your browser instead of displaying them in the console

In a Ruby script:

require "ud"

defs = UD.query("wtf")