MCPcopy Create free account
hub / github.com/arfct/itty-bitty / decodeURL

Function decodeURL

netlify/edge-functions/metadata.js:6–9  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

4}
5
6function decodeURL(s) {
7 if (s.startsWith("http")) return s;
8 return atob(s.replace(/=/g,''));
9}
10
11function atou(b64) { return decodeURIComponent(escape(atob(b64))); }
12function utoa(data) { return btoa(unescape(encodeURIComponent(data))); }

Callers 1

metadata.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected