
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
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 550 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.