{"library":"webpack-dev-mock","type":"library","category":null,"description":"mock-dev-server is an Express middleware that automatically generates mock API endpoints from a project's `mock/index.js` configuration file. Current stable version is 2.0.0. It supports both simple JSON responses and custom handler functions with full Express 4 semantics, including route parameters. Key differentiators include zero configuration (just place a mock file), support for all HTTP methods, and seamless integration with any Express-based dev server, including webpack-dev-server. It is part of the Alibaba ICE ecosystem but can be used standalone.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install webpack-dev-mock","imports":["const mockServer = require('mock-dev-server');","mockServer(app);","module.exports = { 'GET /api/users': { users: [1,2] } };"]},{"cmd":"yarn add webpack-dev-mock","imports":[]},{"cmd":"pnpm add webpack-dev-mock","imports":[]}],"homepage":"https://github.com/alibaba/ice/tree/master/packages/webpack-dev-mock","github":"https://github.com/alibaba/ice/tree/master/packages/webpack-dev-mock","docs":null,"changelog":null,"pypi":null,"npm":"webpack-dev-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}