0.5.030.0 MB
MIT
strict
core24
Tool for coercing environment variables into boolean values
A tool for coercing environment variables (and arbitrary strings) into boolean values.
Exits
Usage
Exits
0 for truthy, 1 for falsy, and 2 on error.Usage
$ export DEBUG=true
$ envbool DEBUG && echo "debug is on"
debug is on$ echo "Verbose: $(envbool --print VERBOSE)"
Verbose: false$ echo "yes" | envbool && echo "truthy"
truthy$ envbool --strict ENABLE_CACHE || echo "cache is off or misconfigured"
cache is off or misconfiguredUpdate History
0.4.2 (1) → 0.5.0 (3)27 Sept 2026, 23:00 UTC
0.4.2 (1)27 Sept 2026, 03:45 UTC
27 Sept 2026, 03:36 UTC
27 Sept 2026, 22:52 UTC
27 Sept 2026, 03:45 UTC