anime-quiz
v3.0.0
Published
A simple module to generate anime quiz.
Downloads
388
Maintainers
Readme
AnimeQuiz
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",
}