Skip to content
/ cat Public

Cat is an API wrapper that allows you to easily generate pictures of cats (Powered by TheCatAPI).

License

Notifications You must be signed in to change notification settings

connuh/cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Cat - an API wrapper. 😺

Cat is an API wrapper that allows you to easily generate pictures of cats (Powered by TheCatAPI).

Version Node License

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> });

Contributions 🎉

All contributions are accepted, simply open an Issue / Pull request.

About

Cat is an API wrapper that allows you to easily generate pictures of cats (Powered by TheCatAPI).

Resources

License

Stars

Watchers

Forks

Packages

No packages published