MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / bytesToBase64Safe

Function bytesToBase64Safe

packages/@stdlib/base64/src/base64.ts:32–40  ·  view source on GitHub ↗
(
  input: T,
)

Source from the content-addressed store, hash-verified

30 }
31}
32export function bytesToBase64Safe<T extends Uint8Array | null | undefined>(
33 input: T,
34): Replace<T, Uint8Array, string> {
35 if (input == null) {
36 return input as any;
37 } else {
38 return bytesToBase64(input) as any;
39 }
40}
41
42export function base64ToText(input: string): string {
43 return Base64.decode(input);

Callers

nothing calls this directly

Calls 1

bytesToBase64Function · 0.85

Tested by

no test coverage detected