MCPcopy Create free account
hub / github.com/github/docs / fmfromf

Function fmfromf

lib/read-file-contents.js:9–15  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

7 * Read only the frontmatter from file
8 */
9export default async function fmfromf(filepath) {
10 let fileContent = await fs.readFile(filepath, 'utf8')
11
12 fileContent = encodeBracketedParentheses(fileContent)
13
14 return fm(fileContent, { filepath })
15}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected