nupp.util.spi

Implementation interfaces consumed during ordinary module initialization. Discover with nupp.spi.load; the consumer chooses the unique highest priority. Omitted priority is zero. Importing these declarations loads no implementation.

Module contents

Types

TypeKindDescription
UuidProviderinterfaceCanonical lowercase, hyphenated UUID generation for nupp.util.

Types#

UuidProviderinterface#

interface UuidProvider ...

Canonical lowercase, hyphenated UUID generation for nupp.util.

Version 4 provides random UUIDs and version 7 provides time-ordered UUIDs. Version and variant bits must be correct; randomness failures must be reported.

Members

NameKindDescription
priorityfield
uuid4methodGenerates a random version 4 UUID.
uuid7methodGenerates a time-ordered version 7 UUID.

priorityfield#

priority: integer?
@readonly

uuid4method#

uuid4: function(): string
@readonly

Generates a random version 4 UUID.

Returns
TypeDescription
string

uuid7method#

uuid7: function(): string
@readonly

Generates a time-ordered version 7 UUID.

Returns
TypeDescription
string