Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    xml-to-jsonpublic

    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

    install

    npm i xml-to-json

    Downloadsweekly downloads

    88

    version

    0.1.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar