Socket
Socket
Sign inDemoInstall

sitemap-links

Package Overview
Dependencies
9
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sitemap-links

Crawl and parse links in sitemap recursively.


Version published
Weekly downloads
194
decreased by-29.2%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 02 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc