Vite Plugin Mock Server
JSON →vite-plugin-mock-server is a Vite plugin designed to provide local API mocking capabilities for development servers. It enables developers to define mock APIs using both TypeScript and JavaScript files, automatically hot-reloading them upon modification. The plugin is built with TypeScript, ensuring type safety for mock definitions. A key differentiator is its robust compatibility with `express.js` middlewares, allowing for advanced request processing like body parsing and cookie handling directly within the mock server configuration. It leverages ant-style path matching for flexible URL pattern definition, making it versatile for various API structures. The current stable version is 1.3.1. While no explicit release cadence is stated, it appears to be actively maintained, with updates released as needed to support Vite and address community feedback.
Traffic · last 30 days ↑267% vs prev 7d
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇮🇳 India · 🇸🇬 Singapore