nupp.uuid
UUID generation using the implementation retained when this module loads.
UUIDs are lowercase, hyphenated strings. Setup selects the canonical uuid service before requiring this module. The built-in default uses the native or browser host.
Module contents
Values
| Value | Kind | Description |
|---|---|---|
v4 | variable | Generates a random version 4 UUID. |
v7 | variable | Generates a time-ordered version 7 UUID. |
Values#
v4variable#
const v4Generates a random version 4 UUID.
Raises
when the system cannot supply randomness
v7variable#
const v7Generates a time-ordered version 7 UUID.
Raises
when the system cannot supply randomness