Skip to content

tristan-greffe/node-xml2json

Repository files navigation

Simple XML2JSON Parser

Project Banner

coverage maintainability stars license

About the Project

Features

  1. Transforms data in XML format into JSON

  2. Convert JSON objects into XML documents

Tech Stack

My Skills

Usage

Installation

npm install @codask/xml2json --save

or

yarn add @codask/xml2json

Example

import { xml2json } from '@codask/xml2json'

xmlToJson('<root><name>John Doe</name><age>30</age></root>')
import { json2xml } from '@codask/xml2json'

json2xml({
  "root": {
    "name": "John Doe",
    "age": 30
  }
})

Contributing

Contributions are always welcome!

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork it! 🤙

  2. Create your feature branch: git checkout -b my-new-feature

  3. Commit your changes: git commit -m "Add some feature"

  4. Push to the branch: git push origin my-new-feature

  5. Submit a pull request 👍

License

This project is licensed under the MIT License - see the license file for details