express-har-capture

Express middleware for capturing HAR (HTTP ARchive)-files

Express HAR capture

Express middleware that captures HAR-traces of passing requests.

Currently very alpha, so use with caution

var app = express();
app.use(harCapture({}))
app.get('/', function (reqresnext) { ... });

This will output a HAR-file for each request in the webserver's current working directory.

mapRequestToName: Function that given the req will come up with a sensible filename for the HAR to be put in.

harOutputDir: Where to put the HAR-files. Defaults to process.cwd().

Three-clause BSD