Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-perf

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-perf - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

4

index.js

@@ -16,2 +16,6 @@ var https = require('https')

if (layer && fn !== '/' && (layer.regexp && !layer.regexp.fast_slash)) {
if (fn.charAt(fn.length - 1) === "/") {
fn = fn.slice(0, -1)
}
layer.__basePath = fn

@@ -18,0 +22,0 @@ }

2

package.json
{
"name": "express-perf",
"version": "1.11.0",
"version": "1.11.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,5 +10,5 @@ # express-perf

* Install `express-perf` using npm.
* Install `express-perf` using npm
```
```bash
npm install express-perf --save

@@ -19,13 +19,14 @@ ```

```
```javascript
var express = require('express')
var perf = require('express-perf')
// include this as the first middleware that you load, right
// before you instantiate your real routes
app.use(perf(express, {
apiKey: PERF_API_KEY
apiKey: 'PERF_API_KEY'
}))
```
* Make sure to include this _before_ you call your routes, preferably as your first middleware
* `require('express')` is just an example, you probably have already included this
* Make sure to replace `PERF_API_KEY` with the key given to you
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc