Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utilities — caching, formatting, and helper functions.

Structs§

Cache
A simple filesystem-based cache for audit results.

Functions§

cpu_count
Get the number of available CPU cores for parallel execution.
format_bytes
Format bytes to a human-readable size.
format_duration
Format a duration in seconds to a human-readable string.
format_number
Format a number with comma separators.
format_pct
Format a percentage value.
read_file_trimmed
Read a file, trimming whitespace.
truncate
Truncate a string to a maximum length with ellipsis.