Skip to content

Middleware for capturing HAR-traces of requests

License

Notifications You must be signed in to change notification settings

idoco/node-express-har-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express HAR capture

Express middleware that captures HAR-traces of passing requests.

Currently very alpha, so use with caution

Usage

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

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

Options

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().

License

Three-clause BSD

About

Middleware for capturing HAR-traces of requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •