Go to file
gapodo 5fd0717ac3 update 2023-11-15 23:50:33 +01:00
build bump 2019-05-20 18:51:43 +08:00
src bump 2019-05-20 18:51:43 +08:00
.babelrc update 2023-11-15 23:50:33 +01:00
.gitignore [feat] promise based jsonp 2017-08-07 20:24:25 +08:00
LICENSE Initial commit 2017-08-07 20:12:52 +08:00
README.md [feat] promise based jsonp 2017-08-07 20:24:25 +08:00
package-lock.json update 2023-11-15 23:50:33 +01:00
package.json update 2023-11-15 23:50:33 +01:00

README.md

simple-jsonp-promise

Installation

yarn add simple-jsonp-promise

Example

import jsonp from 'simple-jsonp-promise'
let options = {
        params:{
            a : 1,
            b : 2
        },
        jsonp : 'callback',
        prefix : '__jp',
        timeout : 15000
    }
let response = await jsonp('https://localhost/api.jsonp' , options);