As you can tell, we can't afford a logo designer (Yes, that's Comic Sans 🤣)
Installation
Use the install
command of your favourite package manager!
e.g.
npm install chucklejs
Usage
Simply import which ever utilities you would like to use
e.g.
import { getJoke } from "chucklejs";
try {
console.log(
await getJoke(["Programming", "Dark", "Pun"], {
blacklistFlags: ["nsfw", "racist", "explicit"],
types: ["twopart"],
})
]
);
} catch (error) {
}
Docs
function getJoke(
categories: Category[] | undefined,
{ blacklistFlags, amount, language, contains, types }: Options
): Promise<
(
| {
category: Category;
type: "single";
joke: string;
}
| {
category: Category;
type: "twopart";
setup: string;
delivery: string;
}
)[]
>;