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

sitemap-merger

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-merger

Merge two sitemap together

1.0.3
latest
Source
npm
Version published
Weekly downloads
360
4.05%
Maintainers
1
Weekly downloads
 
Created
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

sitemap

FAQs

Package last updated on 08 Dec 2021

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