node-xml2js-promisedeprecated

A promise wrapper for xml2js.

Usage no npm install needed!

<script type="module">
  import nodeXml2jsPromise from 'https://cdn.skypack.dev/node-xml2js-promise';
</script>

README

node-xml2js-promise

A promise wrapper for xml2js.

NPM CircleCI Dependency Status

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)
})();