68077ec0eb | ||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |
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);