Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

xml2js-fork-stringify

gdman840MIT0.4.23

Fork of xml2js with stringify builder option

xml, json

readme

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