Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An npm module that provides random fox images. Fast and reliable. 🦊🌿

License

NotificationsYou must be signed in to change notification settings

sefinek/random-fox-img

Repository files navigation

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

» Star the repo if you liked it «

The number of downloadsIssuesLast commitCommit activityCode size

📑 » About

This module retrieves random fox images from theapi.sefinek.net API using native module likehttps.Each image is appropriately compressed.

😼 » Installation

npm install random-fox-img

🐈 » Usage

• Importing

constgetRandomFox=require('random-fox-img');

• Async/await example

(async()=>{constdata=awaitgetRandomFox();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 newIssue if you have any questions or issues related to this module or API.

If you like this module, please starthe repository.

📜 » License MIT

Copyright 2023-2024 © bySefinek. All Rights Reserved.

[8]ページ先頭

©2009-2025 Movatter.jp