Skip to content

Uuid

util.uuid : object

Unique ID generators.

Kind: static namespace of util

uuid.v4() ⇒ string

Generate a UUID string

Kind: static method of uuid
Returns: string - UUID v4 with dashes: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx

uuid.short([length]) ⇒ string

Generate a short random alphanumeric string.

Kind: static method of uuid
Returns: string - A string of length length, from the character set "acdefhjkmnpqrtuvwxy0123456789".

Param Type Default Description
[length] number 16 String character count.