Version0.5.0
Revision3
Size0.0 MB
LicenseMIT
Confinementstrict
Basecore24

Tool for coercing environment variables into boolean values


A tool for coercing environment variables (and arbitrary strings) into boolean values.

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 misconfigured

Update 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

Published27 Sept 2026, 03:36 UTC

Last updated27 Sept 2026, 22:52 UTC

First seen27 Sept 2026, 03:45 UTC