3.0.0 • Published 2 years ago

anime-quiz v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

AnimeQuiz

NPM

AnimeQuiz is a simple module to generate Anime Quiz with options for answer.

It has over 100 quizzes


Installation

npm i anime-quiz

yarn add anime-quiz

Usage Example

To generate Random quiz

import { Quiz } from 'anime-quiz' //const { Quiz } = require('anime-quiz')
(() => {
  const { getRandom } = new Quiz()
  console.log(getRandom())
})()

Result

{
      id: 84,
      question:
        "What is the name of the stuffed lion in Bleach?",
      options: [
        "Jo",
        "Kon",
        "Chad",
        "Urdiu",
      ],
      answer: "Kon",
}

To generate quiz by id

import { Quiz } from 'anime-quiz' //const { Quiz } = require('anime-quiz')
(() => {
  const { getQuizById } = new Quiz()
  console.log(getQuizById(34))
})()

Result

{
      id: 34,
      question:
        "In the 2011 TV anime series, \"The iDOLM@ster\", what was the name of Iori's stuffed toy bunny?",
      options: ["Usagi", "Bubsy", "Charles", "Kero"],
      answer: "Charles",
}
3.0.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago