sitemap2array

1.0.3 • Public • Published

sitemap2array

A module to read a simple sitemap.xml file online and return the URLs as an Array.

Install

$ npm install sitemap2array

Usage

const sitemap2array = require('sitemap2array');
 
sitemap2array('google.com/sitemap.xml')
    .then(response => {
        console.log(response);
    })
    .catch(error => {
        console.log(error);
    });
 

Package Sidebar

Install

npm i sitemap2array

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jmcoimbra