
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A node.js module to create sitemaps & static HTML snapshots for SEO of Single Page Applications
A node.js module to help with maintaining sitemap files & static HTML snapshots for a dynamic website. It is designed to help support SEO for HTML5 Single Page Applications (SPA apps) built with frameworks such as AngularJS, Ember.js or Backbone.js.
By providing URL configuration data about a website, Judo is able to create & maintain sitemaps and static HTML snapshots. Judo can be run on a schedule as a separate node.js application and/or embedded in an existing application and run on demand.
Judo will generate a single sitemap file for each URL configuration object passed to the updateSiteMap
method. Each URL that contains a sitemap configuration will be added to that sitemap file. While creating the sitemap Judo will generate warnings for invalid values.
WARNING: Judo uses PhantomJS to generate the static HTML snapshots of website pages. You will need to have PhantomJS installed in order to use this feature.
When the createSnapshots
method is called Judo will go through URLs that contain a snapthot configuration and generate a static HTML snapshot for each filename listed in that configuration. Judo will either wait a short amount of time after opening a URL for the content to load or you can configure your site to set a data-status attribute on the body tag with a value of "true" to signal that the data is loaded.
Judo is configurable via the following options object:
var options = {
muteWarnings: false, // Allows the user to mute warnings generated by Judo
phantomProcs: 1 // Number of PhantomJS processes to run concurrently
};
var judo = new Judo(options);
Judo uses the URL configuration data that you provide to do it's work. For each URL can you provide a sitemap configurtion and/or a snapshot configuration.
var urlConfig = {
baseUrl: 'http://example.com/', // The base URL of your site
siteMapPath: '/srv/mysitedir/sitemap.xml', // Sitemap output
urls: [
{
url: '/about',
siteMap: { // sitemap config (required for inclusion in sitemap)
changefreq: 'daily', // (optional)
priority: '0.5', // (optional)
lastmod: '2012-03-06' // (optional)
}
},
{
url: '/contact',
...
}
]
};
judo.updateSiteMap(urlConfig, function(err){
if (!err) console.log('that was easy!');
});
var urlConfig = {
baseUrl: 'http://example.com/', // The base URL of your site
snapshotsDir: '/srv/mysitedir/snapshots', // Root directory for snapshots
urls: [
{
url: '/about',
snapshot: { // static snapshot config (required for snapshot creation)
changefreq: 'daily', // (optional, same values as for changeFreq)
filenames: [ // Array of filenames to generate snapshots for
'about.html',
'about-us.html' ]
}
},
{
url: '/contact',
...
}
]
};
judo.createSnapshots(urlConfig, function(err){
if (!err) console.log('that was easy!');
});
v0.2.1
Copyright 2013 Jason Sich
Licensed under the MIT license
FAQs
A node.js module to create sitemaps & static HTML snapshots for SEO of Single Page Applications
We found that judo 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.