JSPM

sitemap-urls

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 753
  • Score
    100M100P100Q100026F
  • License MIT

Extract URLs from an XML sitemap.

Package Exports

  • sitemap-urls

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sitemap-urls) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.