MCPcopy
hub / github.com/ThatGuySam/doesitarm / getAllUrlsFromLocalSitemap

Function getAllUrlsFromLocalSitemap

helpers/api/sitemap/parse.js:57–65  ·  view source on GitHub ↗
( sitemapPath )

Source from the content-addressed store, hash-verified

55}
56
57export async function getAllUrlsFromLocalSitemap ( sitemapPath ) {
58 return await getAllUrlsFromSitemap( sitemapPath, {
59 getMethod: async ( sitemapPath ) => {
60 const sitemapXml = await fs.readFile( sitemapPath, 'utf8' )
61
62 return sitemapXml
63 }
64 })
65}
66
67export async function getAllUrlsFromSitemap ( sitemapSource, { getMethod } = {} ) {
68

Callers 1

main.test.tsFile · 0.90

Calls 2

getAllUrlsFromSitemapFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected