🆔 Generates a time-sortable UUID v7 using capability-detected crypto.
Info
Uses the standard Web Crypto API (`globalThis.crypto`).
Syntax
TypeScript
import { uuidv7 } from '@opentf/std'; uuidv7(): string;
Returns
A random UUID v7 string.
Examples
TypeScript
uuidv7() //=> e.g. '0195e2a4-8c3d-7000-8000-123456789abc' (time-ordered)