dadjokes-wrapper
NodeJS wrapper for the ICanHazDadJokes API
This module will help you to get some nice Dad Jokes !
Usage
const DadJokes = ;const dj = ; dj ;
exemple of output
Two guys walked into a bar, the third one ducked.
API
const DadJokes = ;const dj = ; dj ;// Returns a random joke dj ;// Returns a random joke formatted for slack dj ;// This method is auto-cached and returns a joke by it's id dj ; // Returns an image of the joke dj ;// Look here for the query parameters available// https://icanhazdadjoke.com/api#search-for-dad-jokes
Install
With npm installed, run
$ npm install dadjokes-wrapper
Or with yarn installed, run
$ yarn add dadjokes-wrapper
See Also
License
MIT