$ show Leonidas-from-XIV/node-xml2js
node-xml2js is a mature, well-tested Node.js library for bidirectional conversion between XML and JavaScript objects. It uses sax-js for parsing and xmlbuilder-js for building, providing a simple callback or Promise-based API. The library supports extensive configuration options including attribute and tag name processors, value processors, namespace handling, CDATA, and various output formatting. The source code is written in CoffeeScript (compiled to JavaScript), which is now a deprecated language, and the dependencies are outdated (sax >=0.6.0, xmlbuilder ~11.0.0). While the library is functionally complete and has been widely used (over 4900 stars), it has not seen active development in years, and the CoffeeScript source presents a barrier for modern contributions. The codebase is well-structured with clear separation of concerns, but the technical drift is high due to the use of deprecated tools and outdated dependency versions.
The LLM identified 2 files worth highlighting for reuse:
Provides a set of reusable string transformation functions for normalizing, case-converting, stripping XML prefixes, and parsing numbers/booleans. These functions are isolated, have no internal dependencies, and can be extracted and used in any JavaScript project that needs similar text processing.
A minimal, self-contained utility to strip the UTF-8 Byte Order Mark (BOM) from the beginning of a string. It is a single function with no dependencies, easily reusable in any project that handles XML or text files with potential BOM characters.