0.1.4 • Published 6 months ago

quran-quiz v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Quran Quiz

quran-quiz is a library for generating quizzes about the Quran. This library is designed to enhance Quranic memorization.

Read the docs at quran.zakiego.com.

Features

Installation

npm install quran-quiz

Example

Request

import { guessSurah } from "quran-quiz";

const data = await guessSurah.bySurah({
  amount: 3,
  select: [111, 112, 113, 114],
});

Response

When the options.value is set to 1, it means the answer is correct, while when the options.value is set to 0, it means the answer is incorrect.

{
  "data": [
    {
      "question": " قُلْ هُوَ ٱللَّهُ أَحَدٌ",
      "options": [
        {
          "text": "Al-Masad",
          "value": 0
        },
        {
          "text": "Al-Falaq",
          "value": 0
        },
        {
          "text": "An-Nas",
          "value": 0
        },
        {
          "text": "Al-Ikhlas",
          "value": 1
        }
      ]
    }
    // ...
  ],
  "meta": {
    "type": "guessSurahBySurah",
    "select": [111, 112, 113, 114],
    "amount": 3
  }
}

Contributors

0.1.0

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.0.11

7 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.1

10 months ago