Add some purr-fect fun to your code with random cat jokes! This package generates a variety of cat-themed jokes to lighten up your development experience.
Total Maximum Joke Count = 82
npm install cat-jokes
# or
yarn add cat-jokes
const getCatJokes = require("cat-jokes")
let arr = getCatJokes(2); // Generates two jokes
for(let i = 0; i < arr.length; i++){
console.log(arr[i].joke, arr[i].answer)
}
Jokes are randomly grabbed from catJokes.json
[
{
"joke": "Why did the cat sit on the computer?",
"answer": "Because it wanted to keep an eye on the mouse!"
},
{
"joke": "What’s a cat’s favorite color?",
"answer": "Purr-ple!"
}
]
Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.
All notable changes to this project will be documented in this file. See the CHANGELOG for details.
This is my very first npm package I have made. Ever since I started using npm I was curious on how to make my own and how hard it was. The Learning the process was fun and it was cool to see how everything works. In the future I plan to make a more useful package. Although cat jokes are pretty necessary in anyones code.
This project is licensed under the MIT License