/fast-xml2js

In-place replacement for xml2js parseString. This is about 20x faster and makes use of the rapidxml C++ library.

Primary LanguageC++MIT LicenseMIT

fast-xml2js

This is fork of: https://github.com/cmrigney/fast-xml2js

In-place replacement for xml2js parseString. This is about 20x-30x faster and makes use of the rapidxml C++ library.

Install

Run npm install @pjaromin/fast-xml2js

Using

parseString

const { parseString } = require('@pjaromin/fast-xml2js');
parseString('<some_xml>', function(err, result) {
    console.log(result);
});

parseXmlString

const { parseXmlString } = require('@pjaromin/fast-xml2js');
parseXmlString('<some_xml>').then(result => console.log(obj));

Errors returned by this function are Error instances.

Changelog

Change log can be found here Errors returned by this function are string instances.