MCPcopy
hub / github.com/typescript-cheatsheets/react / getFence

Function getFence

genReadme.mjs:149–154  ·  view source on GitHub ↗
(sectionName, isToc = false)

Source from the content-addressed store, hash-verified

147 }
148}
149function getFence(sectionName, isToc = false) {
150 let name = isToc ? sectionName + "-toc" : sectionName;
151 let START_COMMENT = "<!--START-SECTION:" + name + "-->";
152 let END_COMMENT = "<!--END-SECTION:" + name + "-->";
153 return { start: START_COMMENT, end: END_COMMENT };
154}
155
156async function main(argv) {
157 let currentReadme = await fs.readFile(readmePath, { encoding: "utf-8" });

Callers 2

getFenceForSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected