The class for generating random things such as cat images, dog images, jokes and much more!
Please make sure you do not instantiate this class. You can access it though const something = require('some-random-cat').Random
.getAdvice()
STATIC
Random method to generate an advice.
Returns: Promise<Pending>
``
.getCat()
STATIC
Random method to generate a random cat image.
Returns: Promise<Pending>
.getDog()
STATIC
Random method to generate a random dog image.
Returns: Promise<Pending>
.getFact()
STATIC
Random method to generate a random fact.
Returns: Promise<Pending>
``
.getJoke()
STATIC
Random method to generate a random joke.
Returns: Promise<Pending>
.getMeme(sub)
STATIC
Random method to generate a meme.
Returns: Promise<Pending>
``
.getString(number)
STATIC
Returns: Promise<Pending>
``
.getTopic()
STATIC
Random method to generate a topic.
Returns:Promise<Pending>
``
The class for getting information on the package or testing it.
Returns: ``
Type
Description
any
The string with the advice.
Type
Description
any
URL for the image.
Type
Description
any
URL for the image.
Type
Description
any
The string for the fact.
Type
Description
any
An object with the title, description and URL
Parameters
Type
Optional
Description
sub
String
❌
The subreddit to get the meme from.
Parameters
Type
Optional
Description
number
Number
❌
The length of the string.
Type
Description
any
The string with the topic.
PARAMETER | TYPE | DESCRIPTION |
author | String | The author(s) of the package. |
description | String | The description of the package. |
repo | Object | Current repository(s) of the package. |
version | String | The version of the package. |
Type | Description |
any | Tests the package and retrieves an error(if any). |