id-jokes

1.2.6 • Public • Published

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

Package Sidebar

Install

npm i id-jokes

Weekly Downloads

2

Version

1.2.6

License

MIT

Unpacked Size

23.6 kB

Total Files

9

Last publish

Collaborators

  • vins-developer