MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / getFrontmatterContent

Function getFrontmatterContent

lib/utils/frontmatter.js:7–10  ·  view source on GitHub ↗

* * @param {String} file * @returns {String|null}

(file)

Source from the content-addressed store, hash-verified

5 * @returns {String|null}
6 */
7function getFrontmatterContent(file) {
8 const frontmatterMatch = file.match(frontmatterRegex);
9 return frontmatterMatch !== null ? frontmatterMatch[0] : null;
10}
11/**
12 *
13 * @param {String} frontmatter

Callers 3

renderer.module.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected