got-jsonp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

got-jsonp Travis CI Build Status

Got JSONP support.

NPM Badge

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.

Package Sidebar

Install

npm i got-jsonp

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.4 kB

Total Files

6

Last publish

Collaborators

  • richienb