Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
express-simple-sitemap
Advanced tools
Readme
The simplest way to add a sitemap to an express application.
$ npm install express-simple-sitemap
or
$ yarn add express-simple-sitemap
// express setup
const express = require('express');
const app = express();
// import express-simple-sitemap
const sitemap = require('express-simple-sitemap');
// add express-simple-sitemap as middleware
app.use(sitemap({
sitemapUrl: '/sitemap.xml', // optional, default value is '/sitemap.xml'
urls: [
{
url: 'https://github.com/jenbuzz',
lastmod: '2018-12-08', // optional
changefreq: 'daily', // optional
priority: 1.0, // optional
},
{
url: 'https://github.com/jenbuzz/express-simple-sitemap',
},
]
}));
Output:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://github.com/jenbuzz</loc>
<lastmod>2018-12-08</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://github.com/jenbuzz/express-simple-sitemap</loc>
</url>
</urlset>
This package is open-sourced software licensed under the MIT license
FAQs
The simplest way to add a sitemap to an express application
The npm package express-simple-sitemap receives a total of 5 weekly downloads. As such, express-simple-sitemap popularity was classified as not popular.
We found that express-simple-sitemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.