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

    Function $float

    • Retrieves a floating-point number value from an environment variable.

      Parameters

      • key: string

        The name of the environment variable

      • Optionaldef: number

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

      Returns number

      The floating-point number value parsed from the environment variable

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