New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sitemap-generator-cli

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-generator-cli

Create xml sitemaps from the command line.

  • 5.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by7.01%
Maintainers
1
Weekly downloads
 
Created
Source

Sitemap Generator CLI

Travis David David Dev npm

Create xml sitemaps from the command line.

Installation

$ npm install -g sitemap-generator-cli

Usage

$ sitemap-generator [options] <url>

The crawler will fetch all folder URL pages and file types parsed by Google. If present the robots.txt will be taken into account and possible rules are applied for each URL to consider if it should be added to the sitemap. Also the crawler will not fetch URL's from a page if the robots meta tag with the value nofollow is present and ignore them completely if noindex rule is present. The crawler is able to apply the base value to found links.

When the crawler finished the XML Sitemap will be built and printed directly to your console. Pass the sitemap to save the sitemap as a file or do something else:

$ sitemap-generator http://example.com > some/path/sitemap.xml

Options

$ sitemap-generator --help

  Usage: sitemap-generator [options] <url>

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -b, --baseurl          only allow URLs which match given <url>
    -d, --dry              show status messages without generating a sitemap
    -q, --query            consider query string

Example:

// strictly match given path and consider query string
$ sitemap-generator -bq example.com/foo/

--baseurl

Default: false

If you specify an URL with a path (e.g. http://example.com/foo/) and this option is set to true the crawler will only fetch URL's matching example.com/foo/*. Otherwise it could also fetch example.com in case a link to this URL is provided

--dry

Default: false

Use this option to make a dry run and check the generation process to see which sites are fetched and if there are any errors. Will not create a sitemap!

--query

Default: false

Consider URLs with query strings like http://www.example.com/?foo=bar as indiviual sites and add them to the sitemap.

Keywords

FAQs

Package last updated on 15 Jan 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

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