1.2.6 • Published 4 years ago

id-jokes v1.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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);
});```