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.
sitemap-tree
Advanced tools
Sitemap Tree is a node module for building sitemap and associated index files.
Installation via npm:
npm install --save sitemap-tree
Require in script
var Sitemap = require('sitemap-tree');
Example with a single sitemap:
Sitemap.create({destinationPath: "tmp"}).build({
"type": "sitemap",
"name": "sitemap1",
"path": "sitemap1.xml",
"loc": "http://website.com/sitemap/sitemap1.xml",
"lastmod": "2015-08-31T11:00:23-04:00",
"urls": [{
"loc": "http://website.com/url1",
"lastmod": "2015-08-31T11:00:23-04:00",
"changefreq": "daily",
"priority": 0.8
}]
}, function(error) {
// ./tmp/sitemap1.xml created, http://www.sitemaps.org/protocol.html#xmlTagDefinitions
});
Example with an index:
Sitemap.create({destinationPath: "tmp"}).build({
"type": "index",
"name": "index",
"path": "index.xml",
"sitemaps": [
{
"type": "sitemap",
"name": "sitemap2",
"path": "sitemap2.xml",
"loc": "http://website.com/sitemap/sitemap2.xml",
"lastmod": "2015-08-31T11:00:23-04:00",
"urls": [{
"loc": "http://website.com/url2",
"lastmod": "2015-08-31T11:00:23-04:00",
"changefreq": "daily",
"priority": 0.8
}]
}
]
}, function(error) {
// ./tmp/index.xml created, http://www.sitemaps.org/protocol.html#sitemapIndexTagDefinitions
// ./tmp/sitemap2.xml created, http://www.sitemaps.org/protocol.html#xmlTagDefinitions
});
FAQs
sitemap xml file generator
The npm package sitemap-tree receives a total of 1 weekly downloads. As such, sitemap-tree popularity was classified as not popular.
We found that sitemap-tree 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.
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.