https://github.com/bfontaine/ud
:metal: Urban Dictionary in your terminal.
https://github.com/bfontaine/ud
cli ruby tool urban-dictionnary
Last synced: about 1 year ago
JSON representation
:metal: Urban Dictionary in your terminal.
- Host: GitHub
- URL: https://github.com/bfontaine/ud
- Owner: bfontaine
- License: mit
- Created: 2013-06-03T13:09:58.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T14:22:57.000Z (about 6 years ago)
- Last Synced: 2025-04-10T06:20:52.298Z (about 1 year ago)
- Topics: cli, ruby, tool, urban-dictionnary
- Language: Ruby
- Homepage:
- Size: 81.1 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ud
[](http://badge.fury.io/rb/ud)
[](https://coveralls.io/r/bfontaine/ud)
[](http://inch-ci.org/github/bfontaine/ud)
**ud** is a command-line tool for the [Urban Dictionary][urban-dic].
[urban-dic]: http://www.urbandictionary.com
## 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
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:
```ruby
require "ud"
defs = UD.query("wtf")
```