MCPcopy Create free account
hub / github.com/Snailclimb/JavaGuide / readSitemapUrls

Function readSitemapUrls

scripts/indexnow-submit.mjs:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 );
33
34const readSitemapUrls = async () => {
35 const sitemapPath = path.join(cwd, "dist", "sitemap.xml");
36 const sitemap = await readFile(sitemapPath, "utf8");
37
38 return extractUrlsFromSitemap(sitemap);
39};
40
41const submit = async (urls) => {
42 if (!key) {

Callers 1

Calls 1

extractUrlsFromSitemapFunction · 0.70

Tested by

no test coverage detected