Function toBase64

  • converts a UTF-8-encoded string to a Base64 string.

    Parameters

    • src: string
    • Optional urlsafe: boolean

      if true make the result URL-safe

    Returns string

    Base64 string

Generated using TypeDoc