/sitemap-url-array

Retrieves a sitemap and outputs URLs as Javascript array

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

sitemap-url-array

Receives a sitemap XML file from local filesystem and outputs URLs as Javascript array, to a filepath you specify.

Installation

npm i sitemap-url-array

Usage

const convertSitemap = require('sitemap-url-array');
await convertSitemap('filepath/to/sitemap.xml', 'filepath/to/sitemap.json');