Skip to main content
Module

x/ui7/mod.ts>Generator

Generate UUIDv7 identifiers in JavaScript (or TypeScript)
Latest
interface Generator
import { type Generator } from "https://deno.land/x/ui7@v0.2.3/mod.ts";

The type of the UUID function of this package.

Call Signatures

(): string

Generate a UUIDv7 with default options.

(time:
| Time
| null
| undefined
): string

Generate a UUIDv7 using the given time as its timestamp.

(options: Options): string

Generate a UUIDv7 using the given options.