relevant-animals
v1.1.3
Published
Return cute animals, made for everyone with useful methods using promises and snekfetch.
Downloads
7
Readme
relevant-animals
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!