New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-hellban

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-hellban - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "express-hellban",
"version": "0.1.0",
"version": "0.1.1",
"author": "Joel Wietelmann <jwietelmann@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Express.js middleware for hellbanning lusers.",

@@ -6,2 +6,4 @@ express-hellban

For banned users, this middleware waits a random number of milliseconds before either responding successfully or throwing a 500 error. Wait time range, failure rate, and success/failure behavior is configurable
```javascript

@@ -28,5 +30,5 @@

maxWaitTime: 10000,
onSuccess: function(req, res, next) { next(); },
onFailure: function(req, res, next) { res.send(500); }
onSuccess: function(req, res, next) { next(); }, // just go to the next matching route
onFailure: function(req, res, next) { res.send(500); } // HTTP 500 error
}));
```
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