Socket
Socket
Sign inDemoInstall

api-delay

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    api-delay

Deliberately cause a delayed http response in an express app.


Version published
Maintainers
1
Created

Readme

Source

api-delay

Build Status Build status
What?
  • Deliberately cause a delayed http response in an express app.
Why?
  • Simulate a slow api response to test front end handling.
  • Throttle api access to abusers, non-premium users, etc.
How?
  • Creates a function that can be used as app middleware or a route handler.
  • Set the time and trigger options to customize the delayed call to next().
When?
Installation
npm install api-delay
Usage

see docs

Keywords

FAQs

Last updated on 11 Aug 2019

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc