1.0.1 • Published 9 months ago

@blumqa/technology v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@blumqa/technology

What is it?

It's' a package to use dynamic q&a (questions and answers) of technology

How to install

pnpm install @blumqa/technology

You can use any package manager you want, as long as blumqa is added.

How to use

/**
 * @param lang Options are 'en' and 'es'
 * @param id The id of the q&a
*/
getRandom(lang: string) // Output: {id: number, question: string, answer: string, options: string[]}
getById(lang: string, id: number) // Output: {id: number, question: string, answer: string, options: string[]}

Example

import { getRandom, getById } from '@blumqa/technology'

console.log(getRandom('en')) // Output: {id: number, question: string, answer: string, options: string[]}
console.log(getById('es', 5)) // Output: {id: 5, question: "¿Qué empresa tecnológica es conocida por desarrollar TensorFlow?", answer: "Google", options: ["Apple", "Amazon", "Google", "Microsoft"]}
1.0.1

9 months ago

1.0.0

9 months ago