xml2js
npmv0.6.2Simple 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
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.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| xml2jsthis page | 0 | 1 | MIT | 3 years ago |
| fast-xml-builder | 0 | 1 | MIT | 1 day ago |
| fast-xml-parser | 0 | 4 | MIT | 1 day ago |
| type-fest | 337.8M | 6 | (MIT OR CC0-1.0) | 1 day ago |
| fast-json-stable-stringify | 137.5M | 2 | MIT | 1 day ago |
| diff | 124.1M | 4 | BSD-3-Clause | 1 day ago |
Dependencies
Declared by xml2js v0.6.2. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (6)
Used by
Popular packages that depend on xml2js.
Relationship graph
Dependencies (left) and dependents (right) of xml2js.
Frequently installed together
Lightweight debugging utility for Node.js and the browser
The semantic version parser used by npm.
the most correct and second fastest glob implementation in JavaScript
Reusable require and Node resolution utilities library for Expo
Get and typecast environment variables.
A module for reading, writing, and manipulating JSON files
Mac OS X Plist parser/builder for Node.js and browsers
Slugifies a String
parser for xcodeproj/project.pbxproj files
Functions for converting Expo SDK versions to EAS runtime versions
Types for the Expo config object app.config.ts
TypeScript definitions for debug
Release history
No releases in the last two years, typically about 43 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.6.2latest | 3 years ago | 3.3 MB | MIT |
| 0.6.1 | 3 years ago | 3.3 MB | MIT |
| 0.6.0 | 3 years ago | 44 KB | MIT |
| 0.5.0 | 3 years ago | 43 KB | MIT |
| 0.4.23 | 6 years ago | 42 KB | MIT |
| 0.4.22 | 7 years ago | 42 KB | MIT |
| 0.4.21 | 7 years ago | 42 KB | MIT |
| 0.4.20 | 7 years ago | 42 KB | MIT |
| 0.4.19 | 9 years ago | — | MIT |
| 0.4.18 | 9 years ago | — | MIT |
| 0.4.17 | 10 years ago | — | MIT |
| 0.4.16 | 10 years ago | — | MIT |
| 0.4.15 | 11 years ago | — | MIT |
| 0.4.1-4.1 | 11 years ago | — | MIT |
| 0.4.13 | 11 years ago | — | MIT |
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
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.