Socket
Socket
Sign inDemoInstall

@vested/koa-middleware-enterpriser

Package Overview
Dependencies
0
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vested/koa-middleware-enterpriser

Koa middleware to make your project enterprise ready


Version published
Maintainers
2
Created

Readme

Source

@vested/koa-middleware-enterpriser

Koa middleware to make your project enterprise ready.

When building user interfaces, it's generally important to experience the product as it will be perceived by your users. However, many developers build their frontends alongside their backends, creating unrealistic environments where the API returns almost instantly. This project simulates the real-world, allowing you to add just-enough lag to get your interactions just right.

When enabled, the middleware will wait at least minTimeout and up to maxTimeout milliseconds before continuing.

Installation

yarn add @vested/koa-middleware-enterpriser

Usage

import Koa from 'koa'
import { enterpriser } from '@vested/koa-middleware-enterpriser'

export const app = new Koa()
app.use(enterpriser({ enabled: true, minTimeout: 500, maxTimeout: 1000 }))

FAQs

Last updated on 20 Mar 2020

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