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

Function base64ToBytesSafe

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

Source from the content-addressed store, hash-verified

21}
22
23export function base64ToBytesSafe<T extends string | null | undefined>(
24 input: T,
25): Replace<T, string, Uint8Array> {
26 if (input == null) {
27 return input as any;
28 } else {
29 return base64ToBytes(input) as any;
30 }
31}
32export function bytesToBase64Safe<T extends Uint8Array | null | undefined>(
33 input: T,
34): Replace<T, Uint8Array, string> {

Callers 1

tryRefreshTokensFunction · 0.90

Calls 1

base64ToBytesFunction · 0.85

Tested by

no test coverage detected