hebrew-trivia
v1.0.1
Published
A fun and simple npm package that provides random Hebrew trivia questions with different difficulty levels (Easy, Medium, Hard). Perfect for quiz games, educational apps, or adding trivia challenges to your projects!
Downloads
18
Readme
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.
Features
- Retrieve random Hebrew trivia questions
- Choose difficulty levels: Easy, Medium, or Hard
Installation
To install the package, use npm:
npm install hebrew-trivia
Usage
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);