Converts JavaScript/JSON objects, particularly MongoDB/Mongoose documents, to XML. Version 1.1.0 (latest) as of 2014. Ignores null/undefined values and converts Date objects to ISO format. Key differentiator: uses leading underscore to denote XML attributes, wraps pluralized arrays in singular enclosing elements by default. Stable but old; no updates since 2014.
npm install xmlifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a Mongoose-like document to XML with options for root element and attribute prefix.
xmlify(obj, { attributeChar: '' })xmlify(obj, { wrapArrays: false })xmlify(obj, { dateFormat: 'SQL' })Manually assign default values before conversion.
Use 'const xmlify = require("xmlify")' or 'import xmlify from "xmlify"'.Use xmlify to convert objects to XML, not to JSON. Handle the string as XML.
Ensure root argument is a string: xmlify(obj, 'rootName').
No dependency data recorded yet.