Generation

The class for generating secure IDs, formatting time and much more...

Methods </ >

.formatTime(time) STATIC </ >

Generation method to format time to 00:00

PARAMETER

TYPE

OPTIONAL

DEFAULT

DESCRIPTION

time

none

The time to format.

.generateId(options) STATIC </ >

Generation method to secure a well secure UUID.

PARAMETER

TYPE

OPTIONAL

DEFAULT

DESCRIPTION

options

none

The options for the ID.

options.putDash

true

Whether or not to put a -

.getAcronym(name) STATIC </ >

Generation method to get acronym for a string.

PARAMETER

TYPE

OPTIONAL

DEFAULT

DESCRIPTION

name

String

none

The string to get acronym for.

.shorten(text, length) STATIC </ >

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.

Last updated

Was this helpful?