</>PackageGraphPackageGraph

xml2js

npmv0.6.2

Simple XML to JavaScript object converter.

Not recommended for new projects

No — xml2js should not be adopted for new projects. Last published 1141 days ago.

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

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 1141 days ago.

  • AWeight: grade A, Excellent.

    Pulls in 2 transitive packages, about 3.6 MB installed.

  • 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 xml2js to a project.

2
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

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

3.6 MB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BlueOak-1.0.0MIT

Every license you inherit by installing xml2js, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=4.0.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the xml2js README.

javascriptFull README ↗
var parseString = require('xml2js').parseString;
var xml = "<root>Hello xml2js!</root>"
parseString(xml, function (err, result) {
    console.dir(result);
});

xml2js vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
xml2jsthis page01MIT3 years ago
fast-xml-builder01MIT1 day ago
fast-xml-parser04MIT1 day ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
fast-json-stable-stringify137.5M2MIT1 day ago
diff124.1M4BSD-3-Clause1 day ago

Dependencies

Declared by xml2js v0.6.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

coffeescript >=1.10.0 <2coveralls ^3.0.1diff >=1.0.8docco >=0.6.2nyc >=2.2.1zap >=0.2.9 <1

Used by

Popular packages that depend on xml2js.

Relationship graph

Dependencies (left) and dependents (right) of xml2js.

saxxmlbuilder@expo/config-plug…xml2js
xml2js dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 43 days apart.

Recent versions of xml2js
VersionPublishedSizeLicense
0.6.2latest3 years ago3.3 MBMIT
0.6.13 years ago3.3 MBMIT
0.6.03 years ago44 KBMIT
0.5.03 years ago43 KBMIT
0.4.236 years ago42 KBMIT
0.4.227 years ago42 KBMIT
0.4.217 years ago42 KBMIT
0.4.207 years ago42 KBMIT
0.4.199 years agoMIT
0.4.189 years agoMIT
0.4.1710 years agoMIT
0.4.1610 years agoMIT
0.4.1511 years agoMIT
0.4.1-4.111 years agoMIT
0.4.1311 years agoMIT

Overview

xml2js is an npm package that simple XML to JavaScript object converter. It has 1 known dependents in the graph. The latest version is 0.6.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need simple XML to JavaScript object converter and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

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

Maintainers

Keywords

Frequently asked questions

Should I use xml2js?

No — xml2js should not be adopted for new projects. Last published 1141 days ago.

How do I install xml2js?

Run `npm install xml2js` to add xml2js to your npm project.

How many dependencies does xml2js have?

xml2js declares 8 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 3.6 MB on disk.

What license is xml2js released under?

xml2js is distributed under the MIT license. Its dependency tree also includes: BlueOak-1.0.0, MIT.

How popular is xml2js?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on xml2js.

Is xml2js still maintained?

The most recent release of xml2js (v0.6.2) was published 3 years ago.

Does xml2js run install scripts?

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