1.1.1 • Published 6 years ago
node-xml2js-promise v1.1.1
node-xml2js-promise
A promise wrapper for xml2js.
Installation
npm install node-xml2js-promise
Usage
const xml2js_promise = require('node-xml2js-promise');
xml2js_promise(xml, options).then(function(result) {
console.log(result);
});
// or use ES7 async/await
(async ()=>{
let result=await xml2js_promise(xml,options);
console.log(result)
})();