1.1.0 • Published 5 years ago
simple-jsonp-promise v1.1.0
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);