Cat is an API wrapper that allows you to easily generate pictures of cats (Powered by TheCatAPI).
Repository
Current version released
5 years ago
Versions

Cat - an API wrapper. ๐บ
Cat is an API wrapper that allows you to easily generate pictures of cats (Powered by TheCatAPI).
Integrating โจ
If you would like to integrate cat into your project, you have to import it.
import Cat from "https://deno.land/x/cat/mod.ts";After you import the file, you can call functions like this:
getBreeds(); // [ ]
getCat(); // <string>Documentation ๐
Functions:
getBreeds();
getCat();Usage:
/**
* Cat.getBreeds() returns an Array of cat breeds that
* you can pass as arguments for `getCat()`
*/
Cat.getBreeds();/**
* Cat.getCat() returns a String if you provide valid information.
*
* Takes in a singular Object as an argument, the layout is as follows:
* breed -> String
* limit -> Number
* page -> Number
* Order -> String (rand/desc/asc)
*
* Example: { breed: "beng", limit: 10, page: 0, order: "desc" }
*/
Cat.getCat({ breed: <breed>, limit: <limit>, page: <page>, order: <order> });