express-hellban
Express.js middleware for hellbanning lusers.
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
// get the module loadedvar hellban = ; // create a function to test whether or not a user is bannedvar { if!requser return true; else return requserisBanned; // passport/everyauth middleware generally set req.user // Put this before the rest of your routes // The option values you see below are the defaultsapp;