MCPcopy Create free account
hub / github.com/Effect-TS/effect / extractFile

Function extractFile

packages/tools/doctest/src/Source.ts:100–103  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

98 * @since 4.0.0
99 */
100export const extractFile = (file: string): Promise<ReadonlyArray<Snippet>> =>
101 readFile(file, "utf8").then((source) =>
102 extract(source, file.endsWith(".md") || file.endsWith(".mdx") ? "markdown" : "jsdoc")
103 )

Callers

nothing calls this directly

Calls 2

extractFunction · 0.70
readFileFunction · 0.50

Tested by

no test coverage detected