New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xml2

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml2 - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

LICENSE

4

example/index.js
const fs = require('fs');
const parser = require('../parser');
const reader = require('../reader');
const printer = require('../printer');
reader(rootNode => {
console.log('done', JSON.stringify(rootNode, null, 2));
console.log(printer(rootNode));
})(fs.readFileSync(__dirname + '/demo.xml', 'utf8'));

@@ -0,7 +1,12 @@

const parser = require('./parser');
const reader = require('./reader');
const printer = require('./printer');
const { Transform } = require('stream');
class XML extends Transform {
static parse(str){
return new Promise(done => reader(done)(str));
}
}
module.exports = XML;
{
"name": "xml2",
"version": "0.0.1",
"version": "0.0.2",
"description": "simple xml reader and parser",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc