Skip to content

Commit

Permalink
Migrates code to es5
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGuardado committed Aug 14, 2017
1 parent 70d7cdd commit 8003d17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/jsToXml.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 8003d17

Please sign in to comment.