New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@backpackjs/sitemap

Package Overview
Dependencies
Maintainers
11
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backpackjs/sitemap

CommonJS only package

latest
Source
npmnpm
Version
1.2.7
Version published
Maintainers
11
Created
Source

@backpackjs/sitemap

CommonJS only package

Default plugin options:

module.exports = {
  debug: false,
  withIndex: true, // if true, there sitemap.xml will be an index of sitemaps, else it would be a flat sitemap.xml with all the links
  filename: 'sitemap',
  dynamicPaths: ['articles', 'blogs', 'pages', 'products', 'collections'],
  manualPaths: ['', 'account', 'cart', 'account/login', 'account/register', 'cart'],
  // @see: https://www.npmjs.com/package/sitemap
  options: {
    hostname: process.env.SITE_URL,
    // xslUrl: "https://example.com/style.xsl",
    lastmodDateOnly: false, // print date not time
    xmlns: { // trim the xml namespace
      news: true, // flip to false to omit the xml namespace for news
      xhtml: true,
      image: true,
      video: true,
      // custom: [
      //   'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"',
      //   'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"',
      // ],
    }
  }
}

FAQs

Package last updated on 27 Jun 2023

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