express-status-monitor
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "express-status-monitor", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Realtime Monitoring for Express-based Node applications", | ||
@@ -59,2 +59,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
@@ -55,2 +55,12 @@ # express-status-monitor | ||
Example using [http-auth](https://www.npmjs.com/package/http-auth) | ||
```javascript | ||
const auth = require('http-auth'); | ||
const basic = auth.basic({realm: 'Monitor Area'}, function(user, pass, callback) { | ||
callback(user === 'username' && pass === 'password'); | ||
}); | ||
app.get('/status', auth.connect(basic), require('express-status-monitor')()); | ||
``` | ||
## Tests and coverage | ||
@@ -57,0 +67,0 @@ |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28674
76
0