Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

xml2js-es6-promise

1.1.1 • Public • Published

xml2js-es6-promise

ES6 promise wrapper for xml2js

Installation

npm install xml2js-es6-promise

Usage

var xml2js = require('xml2js-es6-promise');
 
xml2js(xml).then(function(js) {
  console.log(JSON.stringify(js));
});
 
xml2js(xml, options).then(function(js) {
  console.log(JSON.stringify(js));
});
 
// e.g.
xml2js("<root>Hello xml2js!</root>", {trim: true}).then(function(js) {
  console.log(JSON.stringify(js));
});

install

npm i xml2js-es6-promise

Downloadsweekly downloads

23,218

version

1.1.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability