Package
http-request-mock
Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 16.7k
- +34% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 6
- Direct, from package.json
- Last release
- 1 year ago
- v2.0.2
- GitHub stars
- 73
- 7 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 2
Downloads
Last week 2026-09-15 to 2026-09-21
16,737 downloads last week, 83,243 in the last month. The 12-month change of +34% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.0.2, 16 Oct 20241 year ago
- First published
- -
- Last push to GitHub
- 16 Oct 2025343 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 2
- Dependents on npm
- 5
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- ^12.18.0 || >=14.13.1
- Runtimes
- -
- Unpacked size (npm)
- 3.7 MB
- Dependencies (6)
chokidarcommanderhttp-proxy@ngneat/falsofollow-redirects@types/follow-redirects
npm install http-request-mock- jsDelivr
https://cdn.jsdelivr.net/npm/http-request-mock@2.0.2/ - unpkg
https://unpkg.com/http-request-mock@2.0.2/ - esm.sh
https://esm.sh/http-request-mock@2.0.2
Indexability: Indexed.