A module to read a simple sitemap.xml file online and return the URLs as an Array.
$ npm install sitemap2array
const sitemap2array = require('sitemap2array');
sitemap2array('google.com/sitemap.xml')
.then(response => {
console.log(response);
})
.catch(error => {
console.log(error);
});