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

    Function $int

    • Retrieves an integer 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 integer value parsed from the environment variable

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