Skip to content
JS
Package

xml-formatter

Converts a XML string into a human readable format (pretty print) while respecting the xml:space attribute

v3.7.0, 13 Mar 2026MITCommonJSTypes: BundledLinting and formatting
$ npm install xml-formatter

Key numbers

As of 25 Sept 2026
Weekly downloads
1m
+99% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 months ago
v3.7.0
GitHub stars
113
22 forks
Open issues / PRs
3 / 6
Contributors
-
Commits, last 52 weeks
65

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5m2mSept 2025Mar 2026Sept 2026High 1.5m (18 Aug 2026)Low 393.9k (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.

1,029,611 downloads last week, 5,109,175 in the last month. The 12-month change of +99% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
143 in total
Latest version
3.7.0, 13 Mar 20266 months ago
First published
10 Nov 2016
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
3
Open pull requests
6
Commits, last 52 weeks
65
Dependents on npm
348

Major versions

  1. v3 first release 3.0.0, 13 Dec 2022
  2. v2 first release 2.0.0, 18 Apr 2020
  3. v1 first release 1.0.0, 14 Nov 2016
  4. v0 first release 0.0.1, 10 Nov 2016

Recent releases

VersionPublished
3.7.013 Mar 2026
3.6.718 Sept 2025
3.6.611 May 2025
3.6.521 Mar 2025
3.6.423 Jan 2025
3.6.37 Jul 2024
3.6.220 Jan 2024
3.6.118 Jan 2024
3.6.023 Oct 2023
3.5.05 Aug 2023
3.4.115 May 2023
3.4.015 May 2023
3.3.28 Mar 2023
3.3.17 Mar 2023
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 16
Runtimes
-
Unpacked size (npm)
82 kB
Dependencies (1)
xml-parser-xo
npm install xml-formatter
  • jsDelivrhttps://cdn.jsdelivr.net/npm/xml-formatter@3.7.0/
  • unpkghttps://unpkg.com/xml-formatter@3.7.0/
  • esm.shhttps://esm.sh/xml-formatter@3.7.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.