encode
@discordeno/utils • Docs
Documentation / @discordeno/utils / encode
Function: encode()
encode(
data
):string
CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
Parameters
• data: string
| ArrayBuffer
Returns
string