-
Transforms data in XML format into JSON
-
Convert JSON objects into XML documents
npm install @codask/xml2json --save
or
yarn add @codask/xml2json
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
}
})
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!
-
Fork it! 🤙
-
Create your feature branch:
git checkout -b my-new-feature
-
Commit your changes:
git commit -m "Add some feature"
-
Push to the branch:
git push origin my-new-feature
-
Submit a pull request 👍
This project is licensed under the MIT License - see the license file for details