# express-tortoise **Repository Path**: mirrors_claviska/express-tortoise ## Basic Information - **Project Name**: express-tortoise - **Description**: Express middleware to delay responses, particularly useful in local development environments. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Express Tortoise Sometimes Express is a bit too fast when you're working locally. Express Tortoise can be used to slow things down, simulating a production server's response time. ## Features - Slow down requests using a min/max range - Enable/disable based on your environment - Optional logging to display the delay duration for each response - Small footprint, zero dependencies ## Installation ``` npm install express-tortoise ``` ## Usage ```js const app = require('express')(); const tortoise = require('express-tortoise'); // All params are optional app.use(tortoise({ enabled: process.env.NODE_ENV === 'development', log: 'Response delayed to simulate production (%s ms)', min: 250, max: 750 })); ``` ## Options - `enabled` (bool) - Set to true to slow down responses or false to disable the delay, default true. - `log` (string|false) - If this is a string, a message will be logged to the console with each response. Use `%s` as a placeholder for the delay in ms. Set to false to disable logging. - `min` (int) - The minimum possible delay in ms, default 250. - `max` (int) - The maximum possible delay in ms, default 750. --- “The race is not always to the swift.” — [The Hare & the Tortoise](http://read.gov/aesop/025.html)