Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UUID Functions

Functions for generating and working with UUIDs.

Summary

FunctionSignatureDescription
uuid-> stringGenerate a UUID v4

Functions

uuid

Generate a UUID v4

Signature: -> string

Examples:

# Generate UUID
uuid() -> \"550e8400-e29b-41d4-a716-446655440000\"
# Each call is unique
uuid() -> random unique ID
# Add ID to object
{id: uuid(), name: 'item'} -> with UUID

CLI Usage:

echo '{}' | jpx 'uuid()'