0.4.23 • Published 3 years ago

xml2js-fork-stringify v0.4.23

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

node-xml2js-stringify

This is a fork of the excellent node-xml2js module by Leonidas-from-XIV.

The only difference in this fork is the stringify builder option that is now passed through node-xml2js to xmlbuilder-js.

Forked from version 0.4.23.

Background

The following issues are tracked against node-xml2js:

A PR has been raised by boxfoot to pass this option through the stringify option to xmlbuilder-js but this has been declined for the reasons outlined in #450.

Like boxfoot, I need to be able to be explicit in the format of XML output so have created this forked repository.

Extra option for the Builder class

  • stringify (default: null): provides a set of functions which tell XMLBuilder how to convert values into strings.

    See docs and XMLStringifier