xml2js is a popular Node.js library that facilitates easy conversion between XML and JavaScript objects. It simplifies parsing XML data into a usable JSON-like format and enables converting JavaScript objects back into XML. Ideal for handling configuration files, API responses, or any data structured in XML, xml2js is actively maintained and offers various options for customization, including attribute name prefixes and handling namespaces. This makes it a versatile tool for developers working with XML-based data.
The npm package xml2js had frequent releases in its early years (2011-2015), with occasional bursts. Release frequency significantly decreased after 2019. Most recently, there were releases in April, May and July 2023, with versions 0.5.0, 0.6.0, 0.6.1 and 0.6.2. As of August 26, 2025, there have been no releases since July 2023.
xml2js downloads show high activity, generally increasing throughout 2024 and peaking in mid-2025. Downloads surged from February 2024 (15M) to a plateau around 90M-100M. July 2025 saw the highest downloads (107M), with August 2025 showing a significant drop (78M), likely due to incomplete data for the month.