Skip to main content

Module semantic_boolean

Module semantic_boolean 

Source
Expand description

Semantic boolean utilities for interpreting various truthy/falsy values.

Functions§

is_env_truthy
Check if an environment variable is truthy
is_falsy
Check if a value is falsy (empty, “false”, “no”, etc.)
is_truthy
Check if a value is truthy (not empty, not “false”, etc.)
parse_env_bool
Parse a boolean from environment variable
to_bool
Convert a semantic value to boolean