xmlsitemap-seo

1.0.7 • Public • Published

xmlsitemap-seo

Universal CLI for sitemap.xml File Generator for SEO

Installation

npm

npm i xmlsitemap-seo

yarn

yarn add xmlsitemap-seo

Usage

Step 1: Create xmlsitemap.config.js file in your root directory.

Step 2: Add your URLs and last modified date in to the config file.

Example

    module.exports = {
      policy: {
        urls: [
          {
            url: "/enterprise/orgs-terms",
            lastMod: "2017-10-06",
          },
          {
            url: "//www.example.com",
            lastMod: "2017-10-06",
          },
        ],
      },
    };

Step 3: Run CLI as npx xmlsitemap-seo in your termminal.

Step 4: Provide directory path for the sitemap.xml file (Ex: './public', './').

Package Sidebar

Install

npm i xmlsitemap-seo

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

6.17 kB

Total Files

6

Last publish

Collaborators

  • javascriptseo