A simple and lightweight module to get random api
npm i --save get-random-api
Import what you need !
const { getAllApis, getRandomApi, getAllCategories, getRandomCategory, getNumberOfApis } = require("get-random-api")
import { getAllApis, getRandomApi, getAllCategories, getRandomCategory, getNumberOfApis } from "get-random-api";
const apis = await getAllApis()
const randomApis = await getRandomApi(number)
const categories = await getAllCategories()
const randomCategories = await getRandomCategory(number)
const count = await getNumberOfApis()