StaticrandomGenerates a short random alphanumeric string derived from
Math.random().toString(36).
A random string of approximately 13 characters, e.g., "xyz789abc123".
StatictimestampReturns the current Unix timestamp in milliseconds (Date.now()).
A numeric timestamp, e.g., 1696118400000.
StaticuuidGenerates a RFC 4122 UUID v4 string (alias for uuidV4). For backward compatibility and convenience.
A UUID v4 string.
StaticuuidGenerates a RFC 4122 UUID v4 string using cryptographically secure random. Uses Node.js crypto module when available, falls back to browser crypto API, then to Math.random() as final fallback.
A UUID v4 string, e.g., "a1b2c3d4-e5f6-4789-abcd-ef1234567890".
StaticuuidGenerates a RFC 4122 UUID v6 string (time-based with random component). UUID v6 offers better database indexing performance than v4 due to temporal ordering.
A UUID v6 string, e.g., "1ef5a6c2-0000-6000-8000-000000000000".
Built-in key generation utilities used by the KeyPath
generatoroption and available for direct use in application code.Example