Jokifie is a Node.js module that provides a collection of jokes categorized into various topics. Whether you need a quick laugh or want to integrate humor into your application, jokifie has you covered.
You can install Jokifie using npm:
npm install jokifie
const { getJoke, getRandomJoke } = require('jokifie');
import { getJoke, getRandomJoke } from 'jokifie';
const joke = await getRandomJoke();
console.log(joke);
const joke = await getJoke('Programming');
console.log(joke);
- Animals
- Lawyer
- Doctor
- Teacher
- Technology
- Programming
- Food
- Sports
- Math
- Science
- Office
- Holiday
If no jokes are found for a category or an error occurs during joke retrieval, appropriate error messages will be logged to the console.
Contributions are welcome! If you'd like to add more jokes, improve the code, or report issues, please visit the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
For more detailed help, please mail to gpcodez@gmail.com
jokifie uses the following open-source libraries:
- colors - For colored terminal output.
Jokifie is maintained by Gpcodez. You can find more of my projects at my website.