@f1stnpm2/dicta-quo-in

1.0.0 • Public • Published

🦊 » Random fox images « 🦊

Random cat
Please check a more elaborate alternative: @sefinek/random-animals

» Star the repo if you liked it «

The number of downloads Issues Last commit Commit activity Code size

📑 » 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 @f1stnpm2/dicta-quo-in

🐈 » Usage

• Importing

const getRandomFox = require('@f1stnpm2/dicta-quo-in');

• 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

Copyright 2023-2024 © by Sefinek. All Rights Reserved.

Readme

Keywords

Package Sidebar

Install

npm i @f1stnpm2/dicta-quo-in

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

16.8 kB

Total Files

10

Last publish

Collaborators

  • sinhatminh11