v4

import { v4 } from "jsr:@ende/uuid";

variable

const v4: { … }

Validator for UUIDv4.

Example: Usage

import { v4 } from "@ende/uuid";
import { assert } from "@ende/assert";

const uuid = crypto.randomUUID();
assert(v4.validate(uuid));

Properties

validate

validate: unknown

Source