MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / enc

Function enc

src/utils/Url.js:227–227  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

225 let { protocol, hostname, username, password, path, port, query } = urlObj;
226
227 const enc = (str) => encodeURIComponent(str);
228
229 if (!protocol || !hostname)
230 throw new Error("Cannot formate url. Missing 'protocol' and 'hostname'.");

Callers 1

formateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected