https://github.com/apacheli/urbanary
A Deno library for Urban Dictionary
https://github.com/apacheli/urbanary
deno dictionary library typescript urban-dictionary
Last synced: about 2 months ago
JSON representation
A Deno library for Urban Dictionary
- Host: GitHub
- URL: https://github.com/apacheli/urbanary
- Owner: apacheli
- License: mit
- Created: 2021-04-01T02:53:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T23:00:08.000Z (almost 3 years ago)
- Last Synced: 2026-03-21T08:37:00.256Z (3 months ago)
- Topics: deno, dictionary, library, typescript, urban-dictionary
- Language: TypeScript
- Homepage: https://deno.land/x/urbanary
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# urbanary
A library that gets definitions from
[Urban Dictionary](https://www.urbandictionary.com/) because it's the world's
most trusted internet dictionary.
## Example
Make sure to enable `--allow-net`.
```ts
import * as urbanary from "https://deno.land/x/urbanary/mod.ts";
const term = prompt("term to define:");
if (!term) {
throw new Error("bad term!");
}
const definitions = await urbanary.define(term);
console.log(definitions);
```
## Functions
- `autocomplete(term: string)`
- `autocompleteExtra(term: string)`
- `define(term: string, page?: number)`
- `defineDefid(defid: number)`
- `random()`
- `uncacheable(ids: number[])`
- `wordsOfTheDay(page?: number)`