Middleware for adding mock responses to lws (local-web-server). Current stable version is 2.0.0, released under an active maintenance cycle. It enables offline development by simulating API responses when network services are unavailable. Mocks are defined in reusable modules. Key differentiators: tight integration with lws ecosystem, simple class-based mock definitions, and support for various response types (JSON, etc.). Ideal for frontend developers working offline or testing scenarios.
npm install lws-mock-responseVerified import paths — ran on the pinned version, not inferred.
Creates a mock response module for lws and runs it with the --mocks CLI option. Responds with JSON data for /rivers endpoint.
Update imports to use ESM syntax (import lwsMockResponse from 'lws-mock-response').
Use import instead of require.
No dependency data recorded yet.