Module utils

Source
Expand description

Utility functions and helpers for the Rustisan framework

This module provides common utility functions used throughout the framework.

Functionsยง

camel_to_snake
Converts camelCase to snake_case
pascal_to_snake
Converts PascalCase to snake_case
random_string
Generates a random string of specified length
slugify
Slugifies a string (converts to URL-friendly format)
snake_to_camel
Converts snake_case to camelCase
snake_to_pascal
Converts snake_case to PascalCase
timestamp
Gets current timestamp in seconds
timestamp_millis
Gets current timestamp in milliseconds
timestamp_to_datetime
Converts a timestamp to DateTime
uuid
Generates a UUID v4 string