A simple npm package that generates New Jokes. Perfect for adding some humor to your project.
You can install the new_jokes
package via npm:
npm install new_jokes
After installing, you can use the getJokes function to generate a random joke. Here's how:
// Import the package
const { getJokes } = require('new_jokes');
// Get a random joke
console.log(getJokes());
Example
const { getJokes } = require('random-jokes');
console.log(getJokes());
// Output: "I’m reading a book about anti-gravity. It’s impossible to put down."