MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / install

Function install

src/platform/deno-hyperscript.js:24–41  ·  view source on GitHub ↗
(target, source, args, runtime)

Source from the content-addressed store, hash-verified

22 }
23 return {
24 async install(target, source, args, runtime) {
25 let resolved = id;
26 if (resolved.startsWith('./') || resolved.startsWith('../')) {
27 resolved = path.join(args.module.dir, resolved);
28 }
29 let mod;
30 if (resolved.endsWith(hsExt)) {
31 mod = await run(resolved);
32 } else {
33 try {
34 await Deno.stat(resolved + hsExt);
35 mod = await run(resolved + hsExt);
36 } catch {
37 mod = await import(resolved);
38 }
39 }
40 runtime.assignToNamespace(target, [], name, mod);
41 }
42 };
43});
44

Callers

nothing calls this directly

Calls 2

runFunction · 0.70
assignToNamespaceMethod · 0.45

Tested by

no test coverage detected