Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/uuid/v1.ts>generate

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function generate
import { generate } from "https://deno.land/std@0.195.0/uuid/v1.ts";

Generates a RFC4122 v1 UUID (time-based).

Parameters

optional
options: V1Options | null

Can use RFC time sequence values as overwrites.

optional
buf: number[]

Can allow the UUID to be written in byte-form starting at the offset.

optional
offset: number

Index to start writing on the UUID bytes in buffer.

Returns

string | number[]