xtj

xml-to-json

parse xml to json

Showing:

Popularity

Downloads/wk

226

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

21.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial