Skip to main content
Module

x/enzastdlib/vendor/@deno-std-uuid.ts>validate

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
function validate
import { validate } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@deno-std-uuid.ts";

Test a string to see if it is a valid UUID.

import { validate } from "https://deno.land/std@0.224.0/uuid/mod.ts"

validate("not a UUID") // false
validate("6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b") // true

Parameters

uuid: string

Returns

boolean