Install latest/stable of envbool

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install envbool

Don't have snapd? Get set up for snaps.

Channel Version Published

Details for envbool

Package name

  • envbool

License

  • MIT

Last updated

  • Today - latest/stable

Report a Snap Store violation

Share this snap

Generate an embeddable card to be shared on external websites.

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
Revision Channel Version Published Build Commit Download SBOM

The build and commit information is derived from build infrastructure records.


Install envbool on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.