ehsangazar / xml-sitemap-generator

XML Sitemap Simply By Scraping a Domain

Home Page:https://gazar.dev/package/xml-sitemap-generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XML Sitemap Generator

A sitemap is like a roadmap for search engines, guiding them through the structure and content of a website. It's essentially a hierarchical list or diagram of all the pages on a website, organized in a way that makes it easy for search engine crawlers to understand and navigate the site's structure.

How to use

Method 1: Clone this repo

npm run start -- --uri="https://gazar.dev"

Method 2: As an NPM

npm install --save-dev xml-sitemap-generator
import XMLSiteMapGenerator from "xml-sitemap-generator";

const main = async () => {
  await XMLSiteMapGenerator({
    uri:"https://gazar.dev",
    whereToSave: "./sitemap.xml",
  });
};
main();

About

XML Sitemap Simply By Scraping a Domain

https://gazar.dev/package/xml-sitemap-generator


Languages

Language:TypeScript 97.9%Language:JavaScript 2.1%