Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages