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

ValueKindDescription
v4variableGenerates a random version 4 UUID.
v7variableGenerates a time-ordered version 7 UUID.

Values#

v4variable#

const v4

Generates a random version 4 UUID.

Raises

  • when the system cannot supply randomness

v7variable#

const v7

Generates a time-ordered version 7 UUID.

Raises

  • when the system cannot supply randomness