Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/deps.ts>uuid.version

Universal process manager built in Deno
Go to Latest
function uuid.version
import { uuid } from "https://deno.land/x/pup@1.0.0-rc.9/deps.ts";
const { version } = uuid;

Detect RFC version of a UUID.

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

version("d9428888-122b-11e1-b85c-61cd3cbb3210") // 1
version("109156be-c4fb-41ea-b1b4-efe1671c5836") // 4

Parameters

uuid: string

Returns

number