• Convert a base64 string to a UTF-8 string. It works in both Node.js and browser environments

    Parameters

    • str: string

      base64 string to convert

    Returns string

    utf-8 string

    if base64 decoding is not supported