Package
xml-formatter
Converts a XML string into a human readable format (pretty print) while respecting the xml:space attribute
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
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
- v3 first release 3.0.0, 13 Dec 2022
- v2 first release 2.0.0, 18 Apr 2020
- v1 first release 1.0.0, 14 Nov 2016
- v0 first release 0.0.1, 10 Nov 2016
Recent releases
| Version | Published |
|---|---|
| 3.7.0 | 13 Mar 2026 |
| 3.6.7 | 18 Sept 2025 |
| 3.6.6 | 11 May 2025 |
| 3.6.5 | 21 Mar 2025 |
| 3.6.4 | 23 Jan 2025 |
| 3.6.3 | 7 Jul 2024 |
| 3.6.2 | 20 Jan 2024 |
| 3.6.1 | 18 Jan 2024 |
| 3.6.0 | 23 Oct 2023 |
| 3.5.0 | 5 Aug 2023 |
| 3.4.1 | 15 May 2023 |
| 3.4.0 | 15 May 2023 |
| 3.3.2 | 8 Mar 2023 |
| 3.3.1 | 7 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- jsDelivr
https://cdn.jsdelivr.net/npm/xml-formatter@3.7.0/ - unpkg
https://unpkg.com/xml-formatter@3.7.0/ - esm.sh
https://esm.sh/xml-formatter@3.7.0
Indexability: Indexed.