Skip to main content
Module

std/uuid/mod.ts>v5.generate

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

Generates a RFC4122 v5 UUID (SHA-1 namespace-based)

Parameters

options: V5Options

Can use a namespace and value to create SHA-1 hash

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