🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

sitemap-links

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-links

Crawl and parse links in sitemap recursively.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
567
17.63%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

sitemap

FAQs

Package last updated on 02 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts