# nashwaan/xml-js

Converter utility between XML text and Javascript object / JSON text.

Repository: https://github.com/nashwaan/xml-js
Canonical: https://ross.abutalabs.com/products/xml-js
Language: JavaScript
License: MIT
License Family: permissive
Topics: json-xml, convert-js, json-converter, xml-js, cdata, convertor, parser, xml, xml-parser, json, json-parser, javascript
Last push: 2024-07-26T20:36:22+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3786, "days_push": 768, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1341, forks 179 (observed 2026-08-28T04:04:26.084909+00:00)

## What it is
A JavaScript library that converts XML text to JavaScript objects or JSON and vice versa. It preserves element order, is fully XML compliant (attributes, CDATA, comments, DOCTYPE, declarations), and produces reversible conversions.

## Use cases
- convert xml to json in nodejs
- convert json to xml
- parse xml preserving element order
- xml parser with cdata support
- lossless xml json round-trip conversion
- transform xml config files to javascript objects

## When to choose
- you need reversible, lossless XML↔JSON conversion
- element order in XML documents must be preserved
- you need full XML compliance including CDATA, DOCTYPE, and processing instructions
- you want a lightweight library with minimal dependencies

## When to avoid
- you need extremely fast streaming parsing of huge XML files
- you want compact merged output like most xml2js libraries rather than order-preserving structure
- you need XPath or XML schema validation

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, serialization
- domain: parsers, developer-tools, web-development
- platform: cross-platform
- tags: xml, json, xml2js, js2xml, cdata, converter, lossless-conversion, nodejs, javascript

## Member repositories
- nashwaan/xml-js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:26.084909+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:43:45.589677+00:00, confidence not recorded.
  - readme: https://github.com/nashwaan/xml-js (fetched 2026-08-28T04:04:26.084909+00:00, sha e855de479f45)
  - registry_npm: https://registry.npmjs.org/xml-js (fetched 2026-08-29T12:02:59.772946+00:00, sha 1df51ae88b32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
