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

Function run

src/platform/deno-hyperscript.js:6–12  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

4const hsExt = '._hs';
5
6export function run(modulePath) {
7 modulePath = path.resolve(modulePath);
8 const args = { module: { dir: path.dirname(modulePath), id: modulePath } };
9 return Deno.readTextFile(modulePath)
10 .then(code => _hyperscript.evaluate(code, {}, args))
11 .catch(e => console.error("Cannot execute file:", e));
12}
13
14_hyperscript.addFeature("import", function parseImport(parser) {
15 if (!parser.matchToken("import")) return;

Callers 2

installFunction · 0.70

Calls 2

resolveMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected