stack

Home > @infiniteobjects/core-library-node > UUID

UUID class

Utilities to generate unique identifiers

Signature:

export declare class UUID 

Methods

Method Modifiers Description
heroku(addHex) static Generate Heroku-like random names
hex(length) static Produce a random hexadecimal string
humanized(words) static Generates a Humanized String delimited by ‘.’
numeric(digits) static Creates a ‘Numeric Random String’ with the last digit being used as a CheckDigit using the Damn algorithm.
pokemon(addHex) static Outputs a Random Pokemon Name, ONLY FROM THE ORIGINAL 151
short(length) static Creates a URL-friendly unique id string. It should protect you from accidentally getting obscene words in generated strings.
shortStamp() static Outputs a Unix Timestamp (the number of seconds since the Unix Epoch).
timeStamp() static Returns the number of milliseconds since the Unix Epoch. Apparently is called [TimeValue](https://www.ecma-international.org/ecma-262/6.0/#sec-time-values-and-time-range)
v4() static Creates a ‘UUIDV4 Random String’