Socket
Socket
Sign inDemoInstall

@sefinek/random-animals

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sefinek/random-animals

The best npm package that retrieves images of random animals such as cats, foxes, dogs, and more! All powered by a fast API interface!


Version published
Weekly downloads
340
increased by0.29%
Maintainers
1
Created
Weekly downloads
 

Readme

Source
Just a cat

» About this package «
😽 🦊

This package for npm returns random images of animals (cats, dogs, foxes etc.) from the official API.

The number of downloads Last commit Issues Code size

📥 » Installation

npm install @sefinek/random-animals

🐈 » Usage

• Async/await example

const random = require('@sefinek/random-animals');

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

• Promise example

const random = require('@sefinek/random-animals');

random.fox().then(data => console.log(data.message));

😻 » Available functions

NameUsageDescription
cat<random>.cat()Return random cats
dog<random>.dog()Return random dogs
fox<random>.fox()Return random foxes
fish<random>.fish()Return random fishes
alpaca<random>.alpaca()Return random alpacas
bird<random>.bird()Return random bird
version<random>.version()Return version of this module
apiVersion<random>.apiVersion()Return API version
cdnVersion<random>.cdnVersion()Return CDN version

📃 » Returned object

{
  "success": true,
  "status": 200,
  "info": { "category": "animals", "endpoint": "cat" },
  "message": "https://cdn.sefinek.net/images/animals/cat/neva-masquerade-cats-1375033-min.jpg"
}

🤝 » Help

If you encounter any issues or have questions, please open a new Issue on GitHub.

⭐ » Thank you

If you find this package useful, please consider giving it a star on GitHub page.

Keywords

FAQs

Last updated on 28 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc