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

xml-to-json

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-to-json

parse xml to json

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
88
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

node-xml-json

Build Status

parse xml to json

Install

npm install xml-to-json

Usage

var xml2json = require('xml-to-json')

xml2json({
	input: './sample/sample2.xml',
	output: './sample/test.json'
}, function(err, result) {
  
	if(err) {
		console.error(err);
	} else {
		console.log(result);
	}
  
});

In config object, you have to enter an input path. But If you don't want to output any file you can set to null.

License

MIT @chilijung

Keywords

FAQs

Package last updated on 09 Feb 2014

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

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