relevant-animals

1.1.3 • Public • Published

relevant-animals Build Status NPM

Return cute animals, made for everyone with useful methods using promises and snekfetch

Usage

Usage is extremely simple.

If you wanted a random dog URL:

const animals = require('relevant-animals')
 
animals.dog().then(s => console.log(s))

This would return http://random.dog/8811-17451-16018.jpg (or another random URL). If you want a shibe or cat:

const animals = require('relevant-animals')
 
animals.shibe().then(s => console.log(s))
animals.cat().then(s => console.log(s))

This would return https://shibecdn.azureedge.net/shibes/62ac94d3e9fc41525878ec33a42dc953d3b07d92.jpg or http://random.cat/i/lnEufzo.jpg. (of course, could be another random URL).

Thats it!

Package Sidebar

Install

npm i relevant-animals

Weekly Downloads

4

Version

1.1.3

License

ISC

Last publish

Collaborators

  • ijaacks
  • mr-sakamoto