MCPcopy Create free account
hub / github.com/backnotprop/plannotator / decompress

Function decompress

packages/shared/crypto.test.ts:24–30  ·  view source on GitHub ↗
(b64: string)

Source from the content-addressed store, hash-verified

22}
23
24function decompress(b64: string): unknown {
25 const base64 = b64.replace(/-/g, "+").replace(/_/g, "/");
26 const binary = atob(base64);
27 const bytes = Uint8Array.from(binary, (c) => c.charCodeAt(0));
28 const decompressed = inflateSync(bytes);
29 return JSON.parse(new TextDecoder().decode(decompressed));
30}
31
32const PASTE_API = "https://plannotator-paste.plannotator.workers.dev";
33

Callers 1

crypto.test.tsFile · 0.70

Calls 2

replaceMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected