Skip to content

An npm package fetching a random dog image from https://dog.ceo/dog-api/ using axios from axios-http.com

Notifications You must be signed in to change notification settings

AnnebladFelix/my-npm-axios-dog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-npm-axios-dog

An npm package fetching a random dog image from https://dog.ceo/dog-api/ using axios from axios-http.com

How to use

Install with your terminal:

npm i my-npm-axios-dog

Example how to use in your code.

const { getRandomDogImage } = require('my-npm-axios-dog');

async function main() {
  try {
    const imageUrl = await getRandomDogImage();
    console.log(imageUrl);
  } catch (error) {
    console.error('Error:', error.message);
  }
}

main();

About

An npm package fetching a random dog image from https://dog.ceo/dog-api/ using axios from axios-http.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published