Everybody loves dad jokes... right?
The jokes list is just a JSON file and can be used wherever. PRs welcome if you've got a good dad joke!
$ npm install --save @mikemcbride/dad-jokes
const dadJokes = require('dad-jokes');
dadJokes.random();
//=> 'The shovel was a ground-breaking invention.'
Type: array
All the dad jokes we have.
Type: function
Random dad joke from the list.
$ npm install --global @mikemcbride/dad-jokes
$ dad-jokes --help
Examples
$ dad-jokes
The shovel was a ground-breaking invention.
$ dad-jokes --all
Did you hear about the restaurant on the moon? Great food, no atmosphere.
What do you call a fake noodle? An impasta.
How many apples grow on a tree? All of them.
...
Options
--all Get all jokes instead of a random joke
MIT © Mike McBride