sitemap-links

1.0.3 • Public • Published

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));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    341
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    341
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i sitemap-links

Weekly Downloads

341

Version

1.0.3

License

ISC

Unpacked Size

3.99 kB

Total Files

5

Last publish

Collaborators

  • gijovarghese141