json-to-xml node.js package made to pass the https://github.com/Imagination-Media/retrieve-test test
- Install the package ->
npm i json-to-xml-converter
- Use the installed package in your project file ->
const jsonConverter = require('json-to-xml-converter');
-
Make sure you have the "order.json" file in the root directory of your project folder
-
Run the script by initializing it ->
jsonConverter();
- The package will generate "results.xml" in your root directory