1.0.0 • Published 4 years ago

got-xml v1.0.0

Weekly downloads
22
License
MIT
Repository
github
Last release
4 years ago

got-xml Travis CI Build Status

Got XML support.

NPM Badge

Install

npm install got-xml

Usage

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: ... } }
})()

API

xmlGot(options?)

options

Type: object

Options to pass to xml2js.