Socket
Socket
Sign inDemoInstall

xml-to-json-stream

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "xml-to-json-stream",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple module to convert XML to JSON with javascript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,3 @@ # xml-to-json-stream

xml-to-json only has two public methods `xmlToJson` and `createStream` .
xml-to-json-stream only has two public methods `xmlToJson` and `createStream` .
Use xmlToJson if you simply want to pass in some XML and access the resulting JSON in the callback function.

@@ -16,3 +16,3 @@ Use createStream if you need to pipe some readable XML stream into a writable destination and convert the XML to JSON along the way.

```javascript
const xmlToJson = require('xml-to-json');
const xmlToJson = require('xml-to-json-stream');
const parser = xmlToJson({attributeMode:false});

@@ -52,3 +52,3 @@

```javascript
const xmlToJson = require('xml-to-json');
const xmlToJson = require('xml-to-json-stream');
const parser = xmlToJson({attributeMode:false});

@@ -72,3 +72,3 @@

```javascript
const xmlToJson = require('xml-to-json');
const xmlToJson = require('xml-to-json-stream');
const parser = xmlToJson();

@@ -89,3 +89,3 @@ const stream = parser.createStream();

```javascript
const xmlToJson = require('xml-to-json');
const xmlToJson = require('xml-to-json-stream');
const fs = require('fs');

@@ -134,3 +134,2 @@

```
* If an element contains a textNode and attributes the textNode will have the key textNode

@@ -137,0 +136,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc