• Retrieves a string from an environment variable.

    • Returns undefined if the environment variable is empty, unset, or contains only whitespace.

    Parameters

    • key: string

      The name of the environment variable to retrieve.

    Returns undefined | string

    • The string value or undefined.