Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 423 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 423 Bytes

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