diff --git a/lib/jsToXml.js b/lib/jsToXml.js index fed7982..73f82bc 100644 --- a/lib/jsToXml.js +++ b/lib/jsToXml.js @@ -1,6 +1,8 @@ -const xml2js = require('xml2js'); -const builder = new xml2js.Builder(); +var xml2js = require('xml2js'); +var builder = new xml2js.Builder(); -const jsToXml = input => builder.buildObject(input); +function jsToXml(input) { + return builder.buildObject(input); +} module.exports = jsToXml; \ No newline at end of file