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

x/pup/deps.ts>uuid.v1.generate

Universal process manager built in Deno
Go to Latest
function uuid.v1.generate
import { uuid } from "https://deno.land/x/pup@1.0.0-rc.6/deps.ts";
const { generate } = uuid.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[]