</>PackageGraphPackageGraph

fast-xml-parser

npmv5.11.1TypeScript

Validate XML, Parse XML, Build XML without C/C++ based libraries

Safe to adopt

Yes — fast-xml-parser scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 14 days ago. 50 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 14 days ago. 50 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 7 transitive packages, about 1.7 MB installed (at least — some of the tree is still being crawled).

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding fast-xml-parser to a project.

6
Direct dependencies

Runtime packages this one declares itself.

7
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

1.7 MB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

MIT

Every license you inherit by installing fast-xml-parser, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the fast-xml-parser README.

const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser");

const parser = new XMLParser();
let jObj = parser.parse(XMLdata);

const builder = new XMLBuilder();
const xmlContent = builder.build(jObj);

fast-xml-parser vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
fast-xml-parserthis page04MIT14 days ago
fast-xml-builder01MIT15 hours ago
cheerio24.1M5MIT15 hours ago
@nodable/entities02MIT17 hours ago
is-unsafe01MIT17 hours ago
dom-serializer94.3M2MIT16 hours ago

Dependencies

Declared by fast-xml-parser v5.11.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (14)

@babel/core ^7.13.10@babel/plugin-transform-runtime ^7.13.10@babel/preset-env ^7.13.10@babel/register ^7.13.8@byspec/xml ^0.1.0@types/node 20babel-loader ^8.2.2c8 ^10.1.3eslint ^8.3.0jasmine ^5.6.0prettier ^3.5.1typescript 5webpack ^5.64.4webpack-cli ^4.9.1

Used by

Popular packages that depend on fast-xml-parser.

Relationship graph

Dependencies (left) and dependents (right) of fast-xml-parser.

Frequently installed together

eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
@types/nodenpm

TypeScript definitions for node

0/wk327 dependentsMITTS
prettiernpm

Prettier is an opinionated code formatter

114.2M/wk159 dependentsMITTS
webpacknpm

Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

49.8M/wk29 dependentsMITTS
@babel/plugin-transform-runtimenpm

Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals

0/wk9 dependentsMIT
picocolorsnpm

The tiniest and the fastest library for terminal output formatting with ANSI colors

0/wk16 dependentsISCTS
@react-native-community/cli-toolsnpm

No description provided.

0/wk9 dependentsMITTS
xml-namingnpm

Validates XML name productions — Name, NCName, QName, NMToken, NMTokens — for XML 1.0 and 1.1

0/wk2 dependentsMITTS
@nodable/entitiesnpm

Entity parser for XML, HTML, External entites with security and NCR control

0/wk2 dependentsMITTS
@react-native-community/cli-typesnpm

No description provided.

0/wk9 dependentsMITTS
whichnpm

Like which(1) unix command. Find the first instance of an executable in the PATH.

290.2M/wk9 dependentsISC
https-proxy-agentnpm

An HTTP(s) proxy `http.Agent` implementation for HTTPS

225.1M/wk10 dependentsMIT

Release history

50 releases in the last two years, typically about 5 days apart.

Recent versions of fast-xml-parser
VersionPublishedSizeLicense
5.11.1latest14 days ago1.3 MBMIT
5.11.025 days ago1.2 MBMIT
5.10.11 month ago1.2 MBMIT
5.10.02 months ago1.2 MBMIT
4.5.72 months ago193 KBMIT
5.9.32 months ago1.2 MBMIT
5.9.22 months ago1.2 MBMIT
5.9.12 months ago1.2 MBMIT
5.9.02 months ago1.2 MBMIT
5.8.04 months ago1.0 MBMIT
5.7.34 months ago966 KBMIT
5.7.24 months ago963 KBMIT
5.7.14 months ago962 KBMIT
5.7.04 months ago962 KBMIT
5.6.04 months ago920 KBMIT

Overview

fast-xml-parser is an npm package that validate XML, Parse XML, Build XML without C/C++ based libraries. It has 4 known dependents in the graph. The latest version is 5.11.1, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need validate XML, Parse XML, Build XML without C/C++ based libraries and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (20 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use fast-xml-parser?

Yes — fast-xml-parser scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 14 days ago. 50 releases in the last 2 years.

How do I install fast-xml-parser?

Run `npm install fast-xml-parser` to add fast-xml-parser to your npm project.

How many dependencies does fast-xml-parser have?

fast-xml-parser declares 20 direct dependencies and pulls in 7 packages in total once its runtime tree is resolved totalling about 1.7 MB on disk.

What license is fast-xml-parser released under?

fast-xml-parser is distributed under the MIT license.

How popular is fast-xml-parser?

npm does not publish download counts. Within PackageGraph's crawl, 4 known packages depend on fast-xml-parser.

Is fast-xml-parser still maintained?

The most recent release of fast-xml-parser (v5.11.1) was published 14 days ago.

Does fast-xml-parser run install scripts?

No. fast-xml-parser does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.