Skip to main content
Module

std/uuid/v4.ts>generate

Deno standard library
Go to Latest
function generate
Deprecated
Deprecated

v4 UUID generation is deprecated and will be removed in a future std/uuid release. Use the web standard globalThis.crypto.randomUUID() function instead.

Generate a RFC4122 v4 UUID (pseudo-random).

import { generate } from "https://deno.land/std@0.152.0/uuid/v4.ts";

Returns

string