1.2.1 • Published 2 years ago

get-random-api v1.2.1

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

get-random-api

A simple and lightweight module to get random api

Installation

npm i --save get-random-api

Documentation

Import what you need !

Javascript

const { getAllApis, getRandomApi, getAllCategories, getRandomCategory, getNumberOfApis } = require("get-random-api")

Typescript

import { getAllApis, getRandomApi, getAllCategories, getRandomCategory, getNumberOfApis } from "get-random-api";

Usage

getAllApis

const apis = await getAllApis()

getRandomApi

const randomApis = await getRandomApi(number)

getAllCategories

const categories = await getAllCategories()

getRandomCategory

const randomCategories = await getRandomCategory(number)

getNumberOfApis

const count = await getNumberOfApis()
1.2.1

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.0

2 years ago