sitemap-xml-reader

A simple reader for sitemap.xml files returning the URLs.

Usage no npm install needed!

<script type="module">
  import sitemapXmlReader from 'https://cdn.skypack.dev/sitemap-xml-reader';
</script>

README

sitemap-xml-reader

A simple reader for node.js parsing sitemap.xml files returning the URLs.

This library makes a http-request to the server and parses the sitemap.xml. It retuns all URLs as an array.

Usage

First install the reader.

npm install --save sitemap-xml-reader

After installing you can require and call it.

var sitemapXmlReader = require( 'sitemap-xml-reader' );
var urls = sitemapXmlReader( 'http://url.to/sitemap.xml' );