random-animal

1.0.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i random-animal

Weekly Downloads

1

Version

1.0.7

License

MIT

Last publish

Collaborators

  • gregorygregorygregory