Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
node-seo is a connect middleware that can generate, cache and serve HTML snapshots of single page web apps for search bots. Uses PhantomJS for generating snapshots.
via npm:
$ npm install seo
node-seo can be used as a middleware for connect/express, like this:
var express = require('express');
var seo = require('seo');
var app = express();
app.use(new seo({
cacheDirectory: path.resolve(process.cwd(), '.seo-cache'),
routes: require('./seo-routes'),
requestURL: 'http://localhost:8080',
pageModifier: function (page, callback) {
// This function can be used to modify a page before it is cached
// `page` is an instance of PhantomJS's Page object. For an example
// see `test/middleware.test.js`
}
}).init());
app.listen(8080);
In this case, node-seo will use seo-routes.js
to check whether it should
create a snapshot for the current path. This file should export a function that
returns a boolean. The first parameter is the current request:
module.exports = function (request) {
if (request.path === '/') return true;
return false;
}
FAQs
A connect middleware that serves html snapshots of single page apps
The npm package seo receives a total of 11 weekly downloads. As such, seo popularity was classified as not popular.
We found that seo 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.