A library that gets definitions from Urban Dictionary because it's the world's most trusted internet dictionary.
Make sure to enable --allow-net
.
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);
autocomplete(term: string)
autocompleteExtra(term: string)
define(term: string, page?: number)
defineDefid(defid: number)
random()
uncacheable(ids: number[])
wordsOfTheDay(page?: number)