Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sitemap-system-file-dispatcher

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-system-file-dispatcher

Generate sitemap dispatcher for file

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

sitemap-system

Generate sitemap index and urlset on simple way :rocket:

Rules

http://www.sitemaps.org/protocol.html

Install

$ npm install sitemap-system

CI

Circle CI

Input

Json properties

path

path where the sitemap content will be saved

domain

your website domain

themes

divisions of your web site

name

name of your theme

urls

list of your urls with format as

  • loc

url

  • priority

Scale of priority in your web site. Values should be between 0.0 and 1.0

  • changeFreq

Information of how often this data is updated

Accept values: - always - hourly - daily - weekly - monthly - anual - never

  • lastmod

Date of last change on format

Example

{
  "path":"/Documents/",
  "domain": "http://mywebsite.com",
  "themes":[
  {
    "name":"sport",
    "urls":[
    {
      "loc":"http://mywebsite.com/sport/soccer",
      "priority":0.7,
      "changeFreq":"always",
      "lastMod":"2016-02-01"
    },
    {
      "loc":"http://mywebsite.com/sport/football",
      "priority":0.7,
      "changeFreq":"always",
      "lastMod":"2016-02-01"
    }
    ]
  },
  {
    "name":"culture",
    "urls":[
    {
      "loc":"http://mywebsite.com/culture/book",
      "priority":0.6,
      "changeFreq":"never",
      "lastMod":"2016-02-01"
    },
    {
      "loc":"http://mywebsite.com/culture/movie",
      "priority":0.6,
      "changeFreq":"never",
      "lastMod":"2016-02-01"
    }
    ]
  }
  ]
}

Output

Folder structure

├── sitemap/
│   ├── index_0.xml
│   ├── index_1.xml
│   ├── theme_0
│   │   ├── urlset_0.xml
│   │   ├── urlset_1.xml
│   │   ├── urlset_2.xml
│   ├── theme_1
│   │   ├── urlset_0.xml

Example

Based on configuration example

├── sitemap/
│   ├── index_0.xml
│   ├── sport
│   │   ├── urlset_0.xml
│   ├── culture
│   │   ├── urlset_0.xml

Keywords

FAQs

Package last updated on 24 Feb 2016

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