Skip to main content

Module utils

Module utils 

Source
Expand description

Generic utility functions

Functionsยง

calculate_sha256
Calculate SHA256 hash of the given content
current_timestamp
Get current Unix timestamp in seconds
extract_readme_excerpt
Get the first meaningful section of the README/markdown as an excerpt
extract_toml_str
Extract a string value from a simple TOML key assignment within [package]
safe_replace_text
Safe text replacement with validation