MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / decodeBase64Body

Function decodeBase64Body

packages/plugins/openapi/src/sdk/invoke.ts:460–463  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

458};
459
460const decodeBase64Body = (value: string): DecodedBase64Body => {
461 const bytes = base64ToUint8Array(value);
462 return bytes ? { ok: true, bytes } : { ok: false };
463};
464
465const toUint8Array = (value: unknown): Uint8Array | null => {
466 if (value instanceof Uint8Array) return value;

Callers 1

invoke.tsFile · 0.85

Calls 1

base64ToUint8ArrayFunction · 0.85

Tested by

no test coverage detected