Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

package.json
{
"name": "sitemap-links",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -14,3 +14,7 @@ "main": "index.js",

},
"keywords": [],
"keywords": [
"sitemap",
"sitemap.xml",
"node.js"
],
"author": "",

@@ -17,0 +21,0 @@ "license": "ISC",

# Sitemap links
Crawl and parse links in sitemap recursively.
## Installation
```bash
npm install sitemap-links
```
## Usage
```javascript
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)
```javascript
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));
```
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc