
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
connect-testab
Advanced tools
Just a simple A/B testing middleware for connect.
$ npm install connect-testab
var connect = require('connect'),
testAB = require('connect-testab'),
app = connect();
app.use(connect.cookieParser());
app.use(testAB());
app.get('/', function(req, res){
res.send('test ' + req.testAB);
});
See a full express example
By default the test will be persisted on a cookie for 7 days. You can change this value by providing a new time in milisecs.
var connect = require('connect'),
testAB = require('connect-testab'),
ONE_DAY = 24 * 60 * 60 * 1000;
app = connect();
app.use(connect.cookieParser());
app.use(testAB(ONE_DAY));
app.get('/', function(req, res){
res.send('test ' + req.testAB);
});
If you do not want to persist it on a cookie just pass a -1
var connect = require('connect'),
testAB = require('connect-testab'),
NO_COOKIES = -1;
app = connect();
app.use(connect.cookieParser());
app.use(testAB(NO_COOKIES));
app.get('/', function(req, res){
res.send('test ' + req.testAB);
});
MIT. See LICENSE file.
FAQs
Just a simple A/B test middleware
The npm package connect-testab receives a total of 0 weekly downloads. As such, connect-testab popularity was classified as not popular.
We found that connect-testab 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.