All the classes available for the current version.
The class for generating secure IDs, formatting time and much more...
Please make sure you do not instantiate this class. You can access it throughconst somethingRandom = require('some-random-cat').Generation
Generation method to format time to 00:00
PARAMETER
TYPE
OPTIONAL
DEFAULT
DESCRIPTION
Generation method to secure a well secure UUID.
Generation method to get acronym for a string.
PARAMETER
TYPE
OPTIONAL
DEFAULT
DESCRIPTION
name
String
❌
none
The string to get acronym for.
Generation method to shorten a string by length.
PARAMETER
TYPE
OPTIONAL
DEFAULT
DESCRIPTION
text
String
❌
none
The string to shorten.
length
Number
❌
none
The length to shorten.
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
Random method to generate an advice.
Type
Description
any
The string with the advice.
Returns: Promise<Pending>
Random method to generate a random cat image.
Type
Description
any
URL for the image.
Returns: Promise<Pending>
Random method to generate a random dog image.
Type
Description
any
URL for the image.
Returns: Promise<Pending>
Random method to generate a random fact.
Type
Description
any
The string for the fact.
Returns: Promise<Pending>
Random method to generate a random joke.
Type
Description
any
An object with the title, description and URL
Returns: Promise<Pending>
Random method to generate a meme.
Parameters
Type
Optional
Description
sub
String
❌
The subreddit to get the meme from.
Returns: Promise<Pending>
Gets a random string of a length.
Parameters
Type
Optional
Description
number
Number
❌
The length of the string.
Returns: Promise<Pending>
Random method to generate a topic.
Type
Description
any
The string with the topic.
Returns:Promise<Pending>
The class for getting information on the package or testing it.
Please make sure you do not instantiate this class. You can access it though const something = require('some-random-cat').Util
.info
STATIC
The general information for the package.
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: ?Object
.test()
STATIC
Random method to generate an advice.
Type
Description
any
Tests the package and retrieves an error(if any).
Returns: Promise<Pending>
Examples: