Hebrew Trivia NPM Package
A simple npm package that provides trivia questions in Hebrew with different difficulty levels. The package returns random trivia questions and their associated options and answers.
- Retrieve random Hebrew trivia questions
- Choose difficulty levels: Easy, Medium, or Hard
To install the package, use npm:
npm install hebrew-trivia
To use the package in your Node.js project:
const trivia = require('hebrew-trivia');
// Get a random trivia question with difficulty level
const questionWithDifficulty = trivia.trivia({ difficulty: "Easy" });
console.log(questionWithDifficulty);
// Get a random trivia question without specifying difficulty
const randomQuestion = trivia.trivia();
console.log(randomQuestion);