🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

sitemap-urls

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-urls

Extract URLs from an XML sitemap.

3.0.0
latest
Source
npm
Version published
Weekly downloads
207
5.61%
Maintainers
1
Weekly downloads
 
Created
Source

Sitemap Urls

Build Status Dependency Status

Extract URLs from an XML sitemap.

Sitemap Urls screenshot

Getting Started

Install the Sitemap Urls command line tool:

npm install -g sitemap-urls
# or
yarn add -g sitemap-urls

Run sitemap-urls on a file containing a sitemap:

sitemap-urls sitemap.xml

Also supports piping:

curl http://example.com/sitemap.xml | sitemap-urls

Usage

CLI

Usage: sitemap-urls <path> [<options>]

Path:
    Path to a file containing an XML sitemap.
    This parameter is ignored when the sitemap is being piped.

Options:
    -h, --help      Show this help text.
    -v, --version   Print sitemap-urls' version.

API

.extractUrls(string xml) -> array

Extracts URLs from a string containing an XML sitemap.

Example result:

[
    "http://example.com/",
    "http://example.com/test/"
]

  • medic - Perform bulk URL status checks and track changes.

License

Sitemap Urls is released under the MIT license.

Copyright © 2015 Roland Warmerdam.

Keywords

sitemap

FAQs

Package last updated on 06 Dec 2017

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