Skip to content

A fun and easy-to-use npm package that generates random cat jokes for your development.

Notifications You must be signed in to change notification settings

pauleenaphan/cat-jokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CatlaughImage

Cat Jokes

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

Installation

npm install cat-jokes
# or
yarn add cat-jokes

Example Usage

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!"
    }
]

Contributing

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.

Changelog

All notable changes to this project will be documented in this file. See the CHANGELOG for details.

Acknowledgements

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.

License

This project is licensed under the MIT License

About

A fun and easy-to-use npm package that generates random cat jokes for your development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published