@pjaromin/fast-xml2js

1.4.1 • Public • Published

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.

Dependencies (2)

Dev Dependencies (5)

Package Sidebar

Install

npm i @pjaromin/fast-xml2js

Weekly Downloads

1

Version

1.4.1

License

MIT

Unpacked Size

282 kB

Total Files

19

Last publish

Collaborators

  • pjaromin