Skip to content

GregoryGregoryGregory/random-animal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

random-animal

Fetches a random image of a Dog or a Cat.

Install

npm install random-animal

Usage

const random = require("random-animal");

// Get a random image of a Cat via random.cat
random.cat().then(url => console.log(url)).catch(err => console.log(err.message));

// Get a random image of a Dog via random.dog 
random.dog().then(url => console.log(url)).catch(err => console.log(err.message));

About

Fetches a random image of a Dog or a Cat.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published