Got XML support.
npm install got-xml
const got = require("got");
const xmlGot = got.extend(require("got-xml")());
(async () => {
const { body } = await xmlGot("https://www.w3schools.com/xml/simple.xml");
console.log(body);
//=> { breakfast_menu: { food: ... } }
})();
Type: object
Options to pass to xml2js.