paquettea/node-svn-info

xml2js explicitArray

paquettea opened this issue · 0 comments

@ram-one Suggested that we should use explicitArray:false
#1

Personally I am not sure this is a benefit for every use cases. I prefer to have always an array output, in case any changes in the datasource starts creating arrays instead of objects. With explicit array, you dont have to test for array and object every time you access a node. If this suits you, you could add an option to pass custom options to xml2js, but I wouldn't override the default options by default