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

    Function $list

    • Retrieves a list of strings from an environment variable (comma-separated values).

      Parameters

      • key: string

        The name of the environment variable

      • Optionaldef: string[]

        Optional default array of strings to use if the environment variable is not set

      Returns String[]

      An array of strings parsed from the comma-separated environment variable, with empty strings filtered out

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