{"library":"mockjs-fetch","type":"library","category":null,"description":"Extends Mock.js to support intercepting fetch-based AJAX requests, enabling seamless mocking of fetch API calls alongside existing XMLHttpRequest mocks. Current stable version is 2.0.0, released with a breaking change in import syntax (named export instead of default). Release cadence is low, with only a few versions. Key differentiators: integrates with Mock.js for full mock syntax support, or can be used standalone for simple fetch-only mocking without Mock.js dependency. Important: must be disabled in production to avoid runtime side effects.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","mock","mockjs","fetch"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install mockjs-fetch","imports":["import { mockFetch } from 'mockjs-fetch'","import { Mock } from 'mockjs-fetch'","import Mock from 'mockjs';\nimport { mockFetch } from 'mockjs-fetch';\nmockFetch(Mock);"]},{"cmd":"yarn add mockjs-fetch","imports":[]},{"cmd":"pnpm add mockjs-fetch","imports":[]}],"homepage":"https://github.com/sxei/mockjs-fetch#readme","github":"https://github.com/sxei/mockjs-fetch","docs":null,"changelog":null,"pypi":null,"npm":"mockjs-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}