Expressjs middleware for testing multiple route handlers (think A/B testing). Middleware will round-robin each route handler for a given test, setting a cookie for each new request in order to match the user to the same handler on subsequent requests.
Installation
$ npm install abn
Usage
var app = ab = ; //Cookies middlware is required for routes using abn middlewareapp; var homeAB = ab; app; app; app; app;
Given the above, the first new user will be returned 'home', the next new user will be returned 'home two!', and the third 'home three!!!'. These users will continue to receive the same response on subsequent requests.