Socket
Socket
Sign inDemoInstall

sitemap-validator

Package Overview
Dependencies
54
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-validator

Validate the URLs in a sitemap


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

Sitemap-Validator

Validate that both production and development sitemaps work correctly.

Installation

npm install -g sitemap-validator

Usage

Sitemap-Validator has the following options:

  • -l location
  • -c code
  • -s source domain
  • -d destination domain
  • -r enable domain remapping

To validate that the http://www.production.com/sitemap.xml file is working correctly, run the following command:

smv -l http://www.production.com/sitemap.xml -c 200

You can also test a sitemap with production domains in the xml against a staging or development server.

smv -l http://www.production.com/sitemap.xml -c 200 -r -s http://www.production.com -d http://staging.production.com

Keywords

FAQs

Last updated on 11 Feb 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