Module: encoding/base64

Requires

  • module:web-stream-tools

Methods

(static) r2s(t, u) → {Uint8Array|ReadableStream.<Uint8Array>}

Convert radix-64 to binary array

Parameters:
Name Type Description
t String | ReadableStream.<String>

radix-64 string to convert

u bool

if true, input is interpreted as URL-safe

Source:
Returns:

binary array version of input string

Type
Uint8Array | ReadableStream.<Uint8Array>

(static) s2r(t, u) → {String|ReadableStream.<String>}

Convert binary array to radix-64

Parameters:
Name Type Default Description
t Uint8Array | ReadableStream.<Uint8Array>

Uint8Array to convert

u bool false

if true, output is URL-safe

Source:
Returns:

radix-64 version of input string

Type
String | ReadableStream.<String>