Skip to content

laserchicken/ab-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ab-tests

A/B testing middleware for express.js using cookies with a round-robin distribution.

You will need the cookie-parser set to make it work.

Usage:

app.use(cookieParser());

const test = setABCookies("test");
app.get("/", test(), (req, res) => res.send("Hello variant 1!"));
app.get("/", test(), (req, res) => res.send("Hello variant 2!"));

About

a/b testing middleware for express.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published