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

x/hex/src/lib/stdx/uuid.ts>v1.generate

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function v1.generate
import { v1 } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/uuid.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[]