Skip to content
JS
Package

xhr-mocklet

Utility for mocking XMLHttpRequests in the browser or nodejs.

v1.2.3, 20 Nov 2018MITESM + CommonJSTypes: BundledTestingDev servers and API mocking
$ npm install xhr-mocklet

Key numbers

As of 25 Sept 2026
Weekly downloads
332.8k
+412% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
7 years ago
v1.2.3
GitHub stars
5
1 forks
Open issues / PRs
7 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 499.6k (25 Aug 2026)Low 27.9k (28 Oct 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

332,764 downloads last week, 1,646,787 in the last month. The 12-month change of +412% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
06 in total
Latest version
1.2.3, 20 Nov 20187 years ago
First published
13 Mar 2017
Last push to GitHub
20 Nov 20182,865 days before the snapshot
Repository archived
No
Open issues
7
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
0

Major versions

  1. v1 first release 1.0.0, 13 Mar 2017

Recent releases

VersionPublished
1.2.320 Nov 2018
1.2.223 Mar 2018
1.2.131 Aug 2017
1.2.029 Aug 2017
1.1.014 Mar 2017
1.0.013 Mar 2017
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
134 kB
Dependencies (3)
globalevent-emitter@types/event-emitter
npm install xhr-mocklet
  • jsDelivrhttps://cdn.jsdelivr.net/npm/xhr-mocklet@1.2.3/
  • unpkghttps://unpkg.com/xhr-mocklet@1.2.3/
  • esm.shhttps://esm.sh/xhr-mocklet@1.2.3
PackageWeekly downloadsGzipLast releaseModuleComparison
mock-xmlhttprequest94k-1 year agoESM + CommonJS-
@kie/mock-github14.3k-4 months agoCommonJS-
rewire509.2k-1 year agoCommonJS-
strong-mock23.3k-4 months agoESM + CommonJS-
sinon-express-mock18.8k-7 years agoCommonJS-
jest-localstorage-mock281k-3 years agoESM + CommonJS-
mock-property450.6k-3 months agoCommonJS-
@mswjs/interceptors15.6m-todayESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.