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

    Function $min

    • Retrieves a number from an environment variable and validates it meets a minimum value.

      Parameters

      • value: string

        The name of the environment variable

      • min: number

        The minimum required value

      • Optionaldef: number

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

      Returns number

      The number value from the environment variable if it meets the minimum requirement

      Will throw an error if the value is not a valid number, is below the minimum, or if the environment variable is missing and no default is provided