• The btoa() method creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data).

    Returns

    An ASCII string containing the Base64 representation of data.

    See

    btoa on MDN

    Parameters

    • data: string

      The binary string to encode.

    Returns string

Generated using TypeDoc