relevant-animals
Version:
Return cute animals, made for everyone with useful methods using promises and snekfetch.
26 lines (17 loc) • 952 B
Markdown
# relevant-animals [](https://travis-ci.org/SnekLab/relevant-animals) [](https://nodei.co/npm/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:
```js
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:
```js
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!