Socket
Book a DemoInstallSign in
Socket

express-har-capture

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-har-capture

Express middleware for capturing HAR (HTTP ARchive)-files

0.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

Express.js

FAQs

Package last updated on 08 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.