Skip to content
JS
Package

xhr

small xhr abstraction

v2.6.0, 28 Nov 2020MITCommonJSTypes: BundledBundlers
$ npm install xhr

Key numbers

As of 25 Sept 2026
Weekly downloads
2.3m
+37% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
5 years ago
v2.6.0
GitHub stars
798
96 forks
Open issues / PRs
10 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.1m (25 Aug 2026)Low 1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,272,122 downloads last week, 10,927,944 in the last month. The 12-month change of +37% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
060 in total
Latest version
2.6.0, 28 Nov 20205 years ago
First published
12 Apr 2012
Last push to GitHub
30 May 2025482 days before the snapshot
Repository archived
No
Open issues
10
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
631

Major versions

  1. v2 first release 2.0.0, 11 Dec 2014
  2. v1 first release 1.1.1, 1 May 2013
  3. v0 first release 0.1.0, 12 Apr 2012

Recent releases

VersionPublished
2.6.028 Nov 2020
2.5.017 May 2018
2.4.114 Dec 2017
2.4.017 Feb 2017
2.3.34 Jan 2017
2.3.215 Dec 2016
2.3.123 Nov 2016
2.3.020 Nov 2016
2.2.222 Jul 2016
2.2.18 Jul 2016
2.2.010 Nov 2015
2.0.55 Nov 2015
2.1.014 Sept 2015
2.0.421 Aug 2015
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
21 kB
Dependencies (4)
xtendglobalis-functionparse-headers
npm install xhr
  • jsDelivrhttps://cdn.jsdelivr.net/npm/xhr@2.6.0/
  • unpkghttps://unpkg.com/xhr@2.6.0/
  • esm.shhttps://esm.sh/xhr@2.6.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.