Socket
Book a DemoInstallSign in
Socket

express-toobusy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-toobusy

Express middleware to return 503 if server is too busy right now

0.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

express-toobusy

Keep your Express server responsive even under heavy load! This trivial middleware uses toobusy-js library which is doing all the magic. Express-toobusy is just a handy wrapper middleware for Express.

Usage


    app.use(require('express-toobusy')());

If you want to specify your own max lag value, use it like this:


    app.use(require('express-toobusy')(40));

For details on max lag meaning and default values refer to toobusy-js documentation.

Keywords

express

FAQs

Package last updated on 17 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.