{"library":"mock-requests","type":"library","category":null,"description":"Mocks XMLHttpRequest and fetch requests with static or dynamic responses without changing source code. Current stable version 1.4.3. Release cadence appears low (latest 2022). Differentiators: no source code modification needed, supports both XHR and fetch, dynamic responses based on payload/query parameters, delay simulation, and Webpack plugin for production-like mocking. Unlike alternatives like fetch-mock or nock, it intercepts at the browser level and works with both APIs seamlessly.","language":"javascript","status":"active","version":"1.4.3","tags":["javascript","network","mock","mocking","mocks","mocker","fetch","fetch-mock","XMLHttpRequest","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mock-requests","imports":["import { activateMocks } from 'mock-requests'","import { MockRequest } from 'mock-requests'","import type { MockRequestOptions } from 'mock-requests'"]},{"cmd":"yarn add mock-requests","imports":[]},{"cmd":"pnpm add mock-requests","imports":[]}],"homepage":"https://d-pow.github.io/mock-requests","github":"https://github.com/D-Pow/mock-requests","docs":null,"changelog":null,"pypi":null,"npm":"mock-requests","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}