Socket
Socket
Sign inDemoInstall

sitemap-links-ts

Package Overview
Dependencies
8
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sitemap-links-ts

📦 NODE.TS - Crawl and parse links in sitemap recursively.


Version published
Maintainers
1
Install size
8.99 MB
Created

Readme

Source

📦 NODE.TS - Crawl and parse links in sitemap recursively.

Disclaimer

⚠ NOTICE: This project was initially created by https://github.com/gijo-varghese

I restored using the NPM registry, I don't use the version that is in npm because it doesn't support TypeScript. I couldn't propose any kind of change, because the original project was removed for some reason from GitHub, the original license was ISC, but if you are the author and want to remove this project, just contact me by email.

Installation

npm install sitemap-links-ts
yarn add sitemap-links-ts

Import

const getSitemapLinks = require('sitemap-links-ts');
import getSitemapLinks from 'sitemap-links-ts';

Usage

const getSitemapLinks = require('sitemap-links-ts');

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

With timeout (default 60s)

const getSitemapLinks = require('sitemap-links-ts');

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

Keywords

FAQs

Last updated on 17 Dec 2021

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