MCPcopy
hub / github.com/alan2207/bulletproof-react / decode

Function decode

apps/nextjs-app/src/testing/mocks/utils.ts:14–20  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

12};
13
14export const decode = (str: string) => {
15 const atob =
16 typeof window === 'undefined'
17 ? (str: string) => Buffer.from(str, 'base64').toString('binary')
18 : window.atob;
19 return JSON.parse(atob(str));
20};
21
22export const hash = (str: string) => {
23 let hash = 5381,

Callers 1

requireAuthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected