Generation

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

Methods </ >

.formatTime(time) STATIC </ >

Generation method to format time to 00:00

Returns: Promise<String>

.generateId(options) STATIC </ >

Generation method to secure a well secure UUID.

Returns: Promise<String>

.getAcronym(name) STATIC </ >

Generation method to get acronym for a string.

Returns: Promise<String>

.shorten(text, length) STATIC </ >

Generation method to shorten a string by length.

Returns: Promise<String>

Last updated