A Connect/Express middleware for simulating latency during development. Version 0.1.0, last updated in 2013, with no recent releases. It allows pausing all or specific requests by a given number of milliseconds, and optionally returning an error after the delay. Lightweight and simple, it is suitable for debugging but lacks TypeScript support and has not seen recent maintenance.
npm install connect-pauseVerified import paths — ran on the pinned version, not inferred.
Sets up an Express server that pauses all requests for 2 seconds before responding.
Consider using alternative middleware or maintaining the package yourself.
Set the error object's status or use a custom error handler.
Wrap the middleware for compatibility if needed.
Run 'npm install connect-pause' to install the package.
Use 'import pause from 'connect-pause'' or 'const pause = require('connect-pause')'.Call pause(ms) to return a middleware function, e.g., app.use(pause(1000)).
No dependency data recorded yet.