1.1.6 • Published 11 months ago

random-fox-img v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

📑 » About

This module retrieves random fox images from the api.sefinek.net API using native module like https. Each image is appropriately compressed.

😼 » Installation

npm install random-fox-img

🐈 » Usage

• Importing

const getRandomFox = require('random-fox-img');

• Async/await example

(async () => {
    const data = await getRandomFox();
    console.log(data.message);
})();

• Promise example

getRandomFox().then(data => console.log(data.message));

• Returned object

{
  "success": true,
  "status": 200,
  "info": { "category": "animals", "endpoint": "fox" },
  "message": "https://cdn.sefinek.net/images/animals/fox/red-fox-in-the-wild-2-1624831.jpg"
}

✨ » Final information

Open a new Issue if you have any questions or issues related to this module or API.

If you like this module, please star the repository.

📜 » License MIT

1.1.6

11 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.11

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.10

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago