@scolastico-dev/env-helper
    Preparing search index...

    Function $bool

    • Retrieves a boolean value from an environment variable.

      Parameters

      • key: string

        The name of the environment variable

      • Optionaldef: boolean

        Optional default boolean value to use if the environment variable is not set

      Returns boolean

      The boolean value parsed from the environment variable (case-insensitive 'true')

      Will throw an error if the environment variable is missing and no default is provided