Skip to content
JS
Package

xmlbuilder2

An XML builder for node.js

v4.0.3, 1 Dec 2025MITCommonJSTypes: BundledParsers and serialisers
$ npm install xmlbuilder2

Key numbers

As of 25 Sept 2026
Weekly downloads
15.8m
+707% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
9 months ago
v4.0.3
GitHub stars
409
38 forks
Open issues / PRs
18 / 12
Contributors
-
Commits, last 52 weeks
82

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 22.9m (18 Aug 2026)Low 1.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.

15,838,035 downloads last week, 72,194,925 in the last month. The 12-month change of +707% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
450 in total
Latest version
4.0.3, 1 Dec 20259 months ago
First published
12 Nov 2019
Last push to GitHub
8 May 2026139 days before the snapshot
Repository archived
No
Open issues
18
Open pull requests
12
Commits, last 52 weeks
82
Dependents on npm
533

Major versions

  1. v4 first release 4.0.0, 16 Oct 2025
  2. v3 first release 3.0.0, 29 Jul 2021
  3. v2 first release 2.0.0, 30 Mar 2020
  4. v1 first release 1.1.0, 12 Feb 2020
  5. v0 first release 0.0.1, 12 Nov 2019

Recent releases

VersionPublished
4.0.31 Dec 2025
4.0.21 Dec 2025
4.0.126 Nov 2025
4.0.016 Oct 2025
3.1.19 May 2023
3.1.024 Apr 2023
3.0.210 Aug 2021
3.0.129 Jul 2021
3.0.029 Jul 2021
2.4.18 Apr 2021
2.4.014 Sept 2020
2.3.15 Aug 2020
2.3.04 Aug 2020
2.2.014 Jul 2020
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=20.0
Runtimes
-
Unpacked size (npm)
918 kB
Dependencies (4)
js-yaml@oozcitak/dom@oozcitak/util@oozcitak/infra
npm install xmlbuilder2

CDN

jsDelivr: 428.3k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/xmlbuilder2@4.0.3/
  • unpkghttps://unpkg.com/xmlbuilder2@4.0.3/
  • esm.shhttps://esm.sh/xmlbuilder2@4.0.3
PackageWeekly downloadsGzipLast releaseModuleComparison
xml2js31.6m-3 years agoCommonJS-
saxen1.1m-3 days agoESM only-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.