MCPcopy
hub / github.com/vonzosten/awesome-LangGraph / extractCommunitySection

Function extractCommunitySection

scripts/repo-checks.mjs:44–53  ·  view source on GitHub ↗
(readme)

Source from the content-addressed store, hash-verified

42}
43
44function extractCommunitySection(readme) {
45 const start = readme.indexOf(COMMUNITY_HEADER);
46 const end = readme.indexOf(COMMUNITY_END_HEADER);
47
48 if (start === -1 || end === -1 || end <= start) {
49 throw new Error('Could not locate the Community Projects section boundaries in README.md');
50 }
51
52 return readme.slice(start, end);
53}
54
55async function fetchRepo(slug) {
56 const response = await fetch(`https://api.github.com/repos/${slug}`, {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected