An npm joke module for the hehe and haha'rs out there :).
$ npm i --save random-joke-getter
var joker = ;// Get a random dad jokejoker;// Get a random programming jokejoker;// Get a random jokejoker;
Examples and Formatting
Dad jokes are formatted on a single line
Where do rabbits go after they get married? On a bunny-moon.
Programming and random jokes are formatted with a newline in between the setup and punchline.
There are 10 types of people in this world... Those who understand binary and those who don't
Random joke example:
Don't look at the eclipse through a colander. You'll strain your eyes.
If you would like to submit some new jokes, please send a request :). I'd be happy to merge after I vet them.
Dad jokes taken from "Dad Joke API" (https://icanhazdadjoke.com/)
Random and programming jokes taken from "Official Joke API" (https://github.com/15Dkatz/official_joke_api)
MIT © Adrian Tran