Some Random Cat
PackageGitHubDocumentationSupport
Insiders
Insiders
  • Introduction
  • Examples
    • Random Cat Image
    • Random Joke
  • Documentation
    • Classes
      • Generation
      • Random
      • Util
  • Misc
    • Reading Notation
Powered by GitBook
On this page
  • Properties
  • .info STATIC
  • Methods
  • .test() STATIC

Was this helpful?

Export as PDF
  1. Documentation
  2. Classes

Util

The class for getting information on the package or testing it.

PreviousRandomNextReading Notation

Last updated 4 years ago

Was this helpful?

Please make sure you do not instantiate this class. You can access it though const something = require('some-random-cat').Util

Properties

.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: ?

Methods

.test() STATIC

Random method to generate an advice.

Type

Description

any

Tests the package and retrieves an error(if any).

Examples:

const somethingRandom = require('some-random-cat').Util
somethingRandom.test()

Returns:

Object
Promise<Pending>