Skip to main content
Module

std/uuid/mod.ts>v1.generate

Deno standard library
Go to Latest
function v1.generate
import { v1 } from "https://deno.land/std@0.120.0/uuid/mod.ts";
const { generate } = v1;

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[]