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

    Function $str

    • Retrieves a string value from an environment variable.

      Parameters

      • key: string

        The name of the environment variable

      • Optionaldef: string

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

      Returns string

      The string value from the environment variable or the default value

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