šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

xml2js-es6-promise

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml2js-es6-promise

ES6 promise wrapper for xml2js

1.1.1
latest
Source
npm
Version published
Weekly downloads
4.4K
54.6%
Maintainers
1
Weekly downloads
Ā 
Created
Source

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

Keywords

xml2js

FAQs

Package last updated on 09 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts