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

Function decodeBase64Body

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

Source from the content-addressed store, hash-verified

499};
500
501const decodeBase64Body = (value: string): DecodedBase64Body => {
502 const bytes = base64ToUint8Array(value);
503 return bytes ? { ok: true, bytes } : { ok: false };
504};
505
506const toUint8Array = (value: unknown): Uint8Array | null => {
507 if (value instanceof Uint8Array) return value;

Callers 1

invoke.tsFile · 0.85

Calls 1

base64ToUint8ArrayFunction · 0.85

Tested by

no test coverage detected