id-jokes
v1.2.6
Published
Get random joke.
Downloads
15
Maintainers
Readme
I Want Jokes!!!!!
npm install --save id-jokes
Usage
const idJokes = require('id-jokes');
// To get a random dad joke
idJokes.dadJoke (function(joke) {
//=> console.log(joke);
});
// To get a random Chuck Norris joke
idJokes.cnJoke (function(joke) {
//=> console.log(joke);
});
// To get a customized joke
let fn = "Vins";
let ln = "Dev";
idJokes.customJoke (fn, ln, function(joke) {
//=> console.log(joke);
});
// To get a random Joke of the Day (Categories allowed: "blonde", "knock-knock", "animal", "jod")
let category = "blonde";
idJokes.todayJoke (category, function(joke) {
//=> console.log(joke);
});```