1.2.1 • Published 3 years ago
some-animals v1.2.1
🐕 some-animals
Installing
- npm install some-animals
Methods
- Bird (bird)
- Bunny (bunny)
- Cat (cat)
- Dog (dog)
- Fox (fox)
- Koala (koala)
- Panda (panda)
- Shiba (shiba)
Example usage with "async-await" construct:
const Animals = require('some-animals');
const animal = new Animals();
const dog = async () => {
let img = await animal.dog();
console.log(img)
}
dog();
Example usage with the ".then" structure:
const Animals = require('some-animals');
const animal = new Animals();
animal.dog().then(img => {
console.log(img)
});
API's used
- bunnies.io
- random.cat
- dog.ceo
- randomfox.ca
- some-random-api.ml
- shibe.online