Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
metalsmith-sitemap
Advanced tools
This provides a metalsmith plugin to generate a sitemap according to the Sitemaps Protocol. There are four pieces of information possible for on any page. The URL of the page (loc), the last modified date (lastmod), the change frequency (changefreq) and the priority. loc is the only value that is required.
###Options
var Sitemap = require('metalsmith-sitemap');
Sitemap({
ignoreFiles: [/test.xml/], // Matched files will be ignored
output: 'sitemap.xml', // The location where the final sitemap should be placed
urlProperty: 'seo.canonical', // Key for URL property
hostname: 'http://www.metalsmith.io', // hostname to use for URL, if needed
modifiedProperty: 'modified', // Key for last modified property
defaults: { // You can provide default values for any property in here
priority: 0.5,
changefreq: 'daily'
}
})
Note that the property keys (urlProperty
, modifiedProperty
) can use the dot syntax to traverse the front matter
object for any given page.
###Front Matter
There are a few properties that Sitemap will use from a files front matter. The first two, mentioned above, are
configurable. The next two are expected to be at a set location. These are page specific values for priority
and
changefreq
which should be at sitemap.priority
and sitemap.changefreq
respectively.
The last piece of front matter that the sitemap pays attention to is another way of ignoring files. If a file has
private
set to true in the front matter it will be skipped in the sitemapprivate
set to true in the front matter it
will be skipped inthe sitemap.
FAQs
A metalsmith plugin for generating a sitemap.xml file.
The npm package metalsmith-sitemap receives a total of 466 weekly downloads. As such, metalsmith-sitemap popularity was classified as not popular.
We found that metalsmith-sitemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.