encode
@discordeno/bot • Docs
Documentation / @discordeno/bot / 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
Defined in
packages/utils/dist/types/base64.d.ts:6