MCPcopy Index your code
hub / github.com/observablehq/framework / files

Function files

test/javascript/files-test.ts:130–132  ·  view source on GitHub ↗
(input: string, {path = "index.md", aliases = ["FileAttachment"]} = {})

Source from the content-addressed store, hash-verified

128});
129
130function files(input: string, {path = "index.md", aliases = ["FileAttachment"]} = {}) {
131 return findFiles(parse(input), path, input, aliases).map(({node, ...f}) => f);
132}
133
134function parse(input: string): Program {
135 return Parser.parse(input, {ecmaVersion: 13, sourceType: "module"});

Callers 1

files-test.tsFile · 0.85

Calls 2

parseFunction · 0.70
findFilesFunction · 0.50

Tested by

no test coverage detected