Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/s3si/deps.ts>uuid.v3.generate

Export your battles from SplatNet to https://stat.ink
Latest
function uuid.v3.generate
import { uuid } from "https://deno.land/x/s3si@gui-v0.4.20/deps.ts";
const { generate } = uuid.v3;

Generate a RFC4122 v3 UUID (MD5 namespace).

Examples

Example 1

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

const NAMESPACE_URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";

const uuid = await generate(NAMESPACE_URL, new TextEncoder().encode("python.org"));
uuid === "22fe6191-c161-3d86-a432-a81f343eda08" // true

Parameters

namespace: string

The namespace to use, encoded as a UUID.

data: Uint8Array

The data to hash to calculate the MD5 digest for the UUID.

Returns

Promise<string>