1.0.7 • Published 7 years ago
random-animal v1.0.7
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));