1.0.3 • Published 4 years ago

sitemap-links v1.0.3

Weekly downloads
17
License
ISC
Repository
github
Last release
4 years ago

Sitemap links

Crawl and parse links in sitemap recursively.

Installation

npm install sitemap-links

Usage

const get_sitemap_links = require('sitemap-links');

get_sitemap_links('https://example.com/sitemap_index.xml')
  .then(urls => console.log(urls))
  .catch(e => console.log(e));

With timeout (default 60s)

const get_sitemap_links = require('sitemap-links');

// 10s timeout
get_sitemap_links('https://example.com/sitemap_index.xml', 10000)
  .then(urls => console.log(urls))
  .catch(e => console.log(e));