UNPKG

urban-scraper

Version:

A package for scraping terms and their definitions from the [Urban Dictionary](https://www.urbandictionary.com/).

15 lines (14 loc) 480 B
import { Term } from "./types"; /** * Formats the term data as markdown if `formatMarkdown` is true * @param termData * @param formatMarkdown * @returns */ export declare function format(termData: Term, formatMarkdown?: boolean): Term; /** * The function to fetch data for the `getTerm` and `getRandom` function * @param str The term to search for * @param random Whether to get a random term */ export declare function get(str: string, random?: boolean): Promise<Term>;