MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / getPathFromUrl

Function getPathFromUrl

helpers/api/sitemap/parse.js:26–30  ·  view source on GitHub ↗
( urlString )

Source from the content-addressed store, hash-verified

24}
25
26function getPathFromUrl ( urlString ) {
27 const url = new URL( urlString )
28
29 return url.pathname
30}
31
32export function parseSitemapXml ( sitemapXml ) {
33 // Get URLs from index

Callers 1

getAllUrlsFromSitemapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected