hebrew-trivia
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i hebrew-trivia

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

13.5 kB

Total Files

5

Last publish

Collaborators

  • adamtroya