express-perf
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -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 @@ } |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40613
134
31