1.0.0 • Published 4 years ago
got-jsonp v1.0.0
got-jsonp
Got JSONP support.
Install
npm install got-jsonp
Usage
const got = require("got");
const jsonpGot = got.extend(require("got-jsonp")());
(async () => {
const { body } = await jsonpGot("https://www.w3schools.com/xml/simple.xml");
console.log(body);
//=> ['No records found']
})();
API
gotJsonp(options?)
options
Type: object
Options to pass to unwrap-jsonp.
1.0.0
4 years ago