Skip to main content
Deno 2 is finally here 🎉️
Learn more

urbanary

A library that gets definitions from Urban Dictionary because it’s the world’s most trusted internet dictionary.

Example

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);