Socket
Socket
Sign inDemoInstall

sitemap-merger

Package Overview
Dependencies
17
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sitemap-merger

Merge two sitemap together


Version published
Weekly downloads
275
increased by3.77%
Maintainers
1
Install size
2.67 MB
Created
Weekly downloads
 

Readme

Source

sitemap-merger

A simple CLI and npm package to merge sitemaps together.

This project is based on deprecated project merge-sitemaps

Usage

It will merge all child url comparing the text from tag loc from sitemap A to B resulting C.

With CLI

$ npx sitemap-merger sitemap.xml subdir/other-sitemap.xml build/sitemap.xml --format

(With the CLI, argument 1 is the base sitemap, argument 2 is the secondary sitemap, and argument 3 is the destination for the output.)

With API

const sitemapMerger = require("sitemap-merger");

console.log(
  sitemapMerger.merge(
    "base-xml-sitemap-as-string",
    "secondary-xml-sitemap-as-string",
    { prettyPrint: true }
  )
);

License

MIT. See the LICENSE file.

Keywords

FAQs

Last updated on 08 Dec 2021

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