{"library":"express-mock-middleware","type":"library","category":null,"description":"A simple mock middleware for Express.js that allows you to define mock API responses in separate JavaScript files. Version 0.0.6 is the latest and stable release. It uses a glob pattern to load mock files (e.g., 'mock/**/*.js') where each file exports an object mapping HTTP methods and paths to handler functions. The middleware intercepts matching requests and returns mock data without requiring a real backend. It is a lightweight alternative to full mocking libraries, focusing on simplicity and ease of use. The package has minimal dependencies and is suitable for development and testing environments.","language":"javascript","status":"active","version":"0.0.6","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-mock-middleware","imports":["import mockMiddleware from 'express-mock-middleware'","const mockMiddleware = require('express-mock-middleware')","import mockMiddleware from 'express-mock-middleware'"]},{"cmd":"yarn add express-mock-middleware","imports":[]},{"cmd":"pnpm add express-mock-middleware","imports":[]}],"homepage":null,"github":"https://github.com/LingyuCoder/express-mock-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-mock-middleware","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/express-mock-middleware/compatibility"}}