{"library":"webpack-mock-server","type":"library","category":null,"description":"Webpack Mock Server is an Express.js middleware designed to integrate seamlessly with `webpack-dev-server` for API request mocking during development. It boasts a built-in hot-replacement (HMR) mechanism and a TypeScript compiler, allowing developers to define mock responses using `.js`, `.ts`, and `.json` files. The current stable version is `1.0.23`, with an active maintenance cadence demonstrated by frequent point releases addressing compatibility and bug fixes. A key differentiator is its ability to display all configured mock endpoints in a user-friendly `index.html` interface, accessible directly from the console. Unlike traditional proxy setups, it functions as a middleware, avoiding complex proxy-path-patterns while maintaining the ability to use ordinary `fetch('/api/getUserInfo')` calls. It can also operate as a standalone Express middleware without Webpack. This approach simplifies development workflow by providing a robust and integrated mocking solution.","language":"javascript","status":"active","version":"1.0.23","tags":["javascript","webpack","mock","mocker","server","api","webpack-dev-server","typescript","ts"],"last_verified":"Wed May 27","install":[{"cmd":"npm install webpack-mock-server","imports":["const webpackMockServer = require(\"webpack-mock-server\");","import webpackMockServer from \"webpack-mock-server\";","export default webpackMockServer.add((app, helper) => { /* ... */ });"]},{"cmd":"yarn add webpack-mock-server","imports":[]},{"cmd":"pnpm add webpack-mock-server","imports":[]}],"homepage":null,"github":"https://github.com/Yegorich555/webpack-mock-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/webpack-mock-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/webpack-mock-server/compatibility"}}